aboutsummaryrefslogtreecommitdiff
path: root/src/ui/host
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-08-18 18:38:10 +0800
committerYuqian Yang <crupest@crupest.life>2025-08-18 18:38:10 +0800
commitb53780b2106b0f233c48e27653336b8a629ca486 (patch)
treee5e2659eb23852012804e9ba8a290a8e19d8230f /src/ui/host
parentd3568fb844c7b9ea59783b04899dbd94ad972b91 (diff)
downloadcru-b53780b2106b0f233c48e27653336b8a629ca486.tar.gz
cru-b53780b2106b0f233c48e27653336b8a629ca486.tar.bz2
cru-b53780b2106b0f233c48e27653336b8a629ca486.zip
Rename CRU_LOG_* to CRU_LOG_TAG_*.
Diffstat (limited to 'src/ui/host')
-rw-r--r--src/ui/host/RoutedEventDispatch.h10
-rw-r--r--src/ui/host/WindowHost.cpp2
2 files changed, 6 insertions, 6 deletions
diff --git a/src/ui/host/RoutedEventDispatch.h b/src/ui/host/RoutedEventDispatch.h
index 207e1ee6..6677deea 100644
--- a/src/ui/host/RoutedEventDispatch.h
+++ b/src/ui/host/RoutedEventDispatch.h
@@ -34,7 +34,7 @@ void DispatchEvent(
if (original_sender == last_receiver) {
if constexpr (debug_flags::routed_event)
- CRU_LOG_DEBUG(
+ CRU_LOG_TAG_DEBUG(
u"Routed event {} no need to dispatch (original_sender == "
"last_receiver). Original sender is {}.",
event_name, original_sender->GetControlType());
@@ -64,7 +64,7 @@ void DispatchEvent(
log += u" -> ";
}
log += i->Resolve()->GetControlType();
- CRU_LOG_DEBUG(log);
+ CRU_LOG_TAG_DEBUG(log);
}
auto handled = false;
@@ -82,7 +82,7 @@ void DispatchEvent(
if (event_args.IsHandled()) {
handled = true;
if constexpr (debug_flags::routed_event)
- CRU_LOG_DEBUG(
+ CRU_LOG_TAG_DEBUG(
u"Routed event is short-circuit in TUNNEL at {}-st control (count "
u"from parent).",
count);
@@ -102,7 +102,7 @@ void DispatchEvent(
->Raise(event_args);
if (event_args.IsHandled()) {
if constexpr (debug_flags::routed_event)
- CRU_LOG_DEBUG(
+ CRU_LOG_TAG_DEBUG(
u"Routed event is short-circuit in BUBBLE at {}-st control "
u"(count from parent).",
count);
@@ -121,7 +121,7 @@ void DispatchEvent(
}
if constexpr (debug_flags::routed_event)
- CRU_LOG_DEBUG(u"Routed event dispatch finished.");
+ CRU_LOG_TAG_DEBUG(u"Routed event dispatch finished.");
WindowHost::LeaveEventHandling();
}
diff --git a/src/ui/host/WindowHost.cpp b/src/ui/host/WindowHost.cpp
index 616803b6..9d0e2006 100644
--- a/src/ui/host/WindowHost.cpp
+++ b/src/ui/host/WindowHost.cpp
@@ -202,7 +202,7 @@ void WindowHost::RelayoutWithSize(const Size& available_size,
for (auto& action : after_layout_stable_action_) action();
after_layout_event_.Raise(AfterLayoutEventArgs{});
after_layout_stable_action_.clear();
- if constexpr (debug_flags::layout) CRU_LOG_DEBUG(u"A relayout is finished.");
+ if constexpr (debug_flags::layout) CRU_LOG_TAG_DEBUG(u"A relayout is finished.");
}
void WindowHost::Repaint() {