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

Side by Side Diff: ui/keyboard/keyboard_util.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/keyboard/keyboard_ui_handler.cc ('k') | ui/shell_dialogs/select_file_dialog_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/keyboard/keyboard_util.h" 5 #include "ui/keyboard/keyboard_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "grit/keyboard_resources.h" 14 #include "grit/keyboard_resources.h"
15 #include "grit/keyboard_resources_map.h" 15 #include "grit/keyboard_resources_map.h"
16 #include "ui/aura/client/aura_constants.h" 16 #include "ui/aura/client/aura_constants.h"
17 #include "ui/aura/root_window.h" 17 #include "ui/aura/window_event_dispatcher.h"
18 #include "ui/base/ime/input_method.h" 18 #include "ui/base/ime/input_method.h"
19 #include "ui/base/ime/text_input_client.h" 19 #include "ui/base/ime/text_input_client.h"
20 #include "ui/keyboard/keyboard_switches.h" 20 #include "ui/keyboard/keyboard_switches.h"
21 21
22 namespace { 22 namespace {
23 23
24 const char kKeyDown[] ="keydown"; 24 const char kKeyDown[] ="keydown";
25 const char kKeyUp[] = "keyup"; 25 const char kKeyUp[] = "keyup";
26 26
27 void SendProcessKeyEvent(ui::EventType type, 27 void SendProcessKeyEvent(ui::EventType type,
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 } 282 }
283 283
284 void LogKeyboardControlEvent(KeyboardControlEvent event) { 284 void LogKeyboardControlEvent(KeyboardControlEvent event) {
285 UMA_HISTOGRAM_ENUMERATION( 285 UMA_HISTOGRAM_ENUMERATION(
286 "VirtualKeyboard.KeyboardControlEvent", 286 "VirtualKeyboard.KeyboardControlEvent",
287 event, 287 event,
288 keyboard::KEYBOARD_CONTROL_MAX); 288 keyboard::KEYBOARD_CONTROL_MAX);
289 } 289 }
290 290
291 } // namespace keyboard 291 } // namespace keyboard
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_ui_handler.cc ('k') | ui/shell_dialogs/select_file_dialog_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698