Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: ui/keyboard/keyboard_ui.cc

Issue 2923493002: Add TRACE_EVENT markers to various keyboard functions (Closed)
Patch Set: more trace markers Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/keyboard/keyboard_layout_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_ui.cc
diff --git a/ui/keyboard/keyboard_ui.cc b/ui/keyboard/keyboard_ui.cc
index 4770f6fc9f33c7a9d3207154b8c566c05ee477ca..a0e65ac758cd883a6b858e35e8911e13f7d0794f 100644
--- a/ui/keyboard/keyboard_ui.cc
+++ b/ui/keyboard/keyboard_ui.cc
@@ -18,8 +18,14 @@ KeyboardUI::~KeyboardUI() {}
void KeyboardUI::ShowKeyboardContainer(aura::Window* container) {
if (HasKeyboardWindow()) {
- GetKeyboardWindow()->Show();
- container->Show();
+ {
+ TRACE_EVENT0("vk", "ShowKeyboardContainerWindow");
+ GetKeyboardWindow()->Show();
+ }
+ {
+ TRACE_EVENT0("vk", "ShowKeyboardContainer");
+ container->Show();
+ }
}
}
@@ -34,6 +40,8 @@ void KeyboardUI::EnsureCaretInWorkArea() {
if (!GetInputMethod())
return;
+ TRACE_EVENT0("vk", "EnsureCaretInWorkArea");
+
const aura::Window* keyboard_window = GetKeyboardWindow();
const gfx::Rect keyboard_bounds_in_screen =
keyboard_window->IsVisible() ? keyboard_window->GetBoundsInScreen()
« no previous file with comments | « ui/keyboard/keyboard_layout_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698