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

Unified Diff: ui/aura/event.cc

Issue 8802002: Rename ui::DefaultSymbolFromXEvent to ui::GetCharacterFromXEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years 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 | « content/browser/renderer_host/web_input_event_aurax11.cc ('k') | ui/base/ime/input_method_ibus.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/event.cc
diff --git a/ui/aura/event.cc b/ui/aura/event.cc
index 670bb8a7810f4927802e2fab5d3da50d5762cb5f..5cb2fd8f1f756f819cd9f1c9a29e550c2dde013a 100644
--- a/ui/aura/event.cc
+++ b/ui/aura/event.cc
@@ -211,7 +211,7 @@ uint16 KeyEvent::GetCharacter() const {
DCHECK(native_event()->type == KeyPress ||
native_event()->type == KeyRelease);
- uint16 ch = ui::DefaultSymbolFromXEvent(native_event());
+ uint16 ch = ui::GetCharacterFromXEvent(native_event());
return ch ? ch : ui::GetCharacterFromKeyCode(key_code_, flags());
#else
NOTIMPLEMENTED();
@@ -242,7 +242,7 @@ uint16 KeyEvent::GetUnmodifiedCharacter() const {
// We can't use things like (key.state & ShiftMask), as it may mask out bits
// used by X11 internally.
key->state &= ~kIgnoredModifiers;
- uint16 ch = ui::DefaultSymbolFromXEvent(native_event());
+ uint16 ch = ui::GetCharacterFromXEvent(native_event());
return ch ? ch :
ui::GetCharacterFromKeyCode(key_code_, flags() & ui::EF_SHIFT_DOWN);
#else
« no previous file with comments | « content/browser/renderer_host/web_input_event_aurax11.cc ('k') | ui/base/ime/input_method_ibus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698