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

Unified Diff: views/focus/focus_manager.cc

Issue 6480001: Migrate Event API methods to Google Style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
Index: views/focus/focus_manager.cc
===================================================================
--- views/focus/focus_manager.cc (revision 74326)
+++ views/focus/focus_manager.cc (working copy)
@@ -120,7 +120,7 @@
#endif
// Intercept arrow key messages to switch between grouped views.
- ui::KeyboardCode key_code = event.GetKeyCode();
+ ui::KeyboardCode key_code = event.key_code();
if (focused_view_ && focused_view_->GetGroup() != -1 &&
(key_code == ui::VKEY_UP || key_code == ui::VKEY_DOWN ||
key_code == ui::VKEY_LEFT || key_code == ui::VKEY_RIGHT)) {
@@ -146,7 +146,7 @@
// Process keyboard accelerators.
// If the key combination matches an accelerator, the accelerator is
// triggered, otherwise the key event is processed as usual.
- Accelerator accelerator(event.GetKeyCode(),
+ Accelerator accelerator(event.key_code(),
event.IsShiftDown(),
event.IsControlDown(),
event.IsAltDown());
@@ -509,8 +509,7 @@
// static
bool FocusManager::IsTabTraversalKeyEvent(const KeyEvent& key_event) {
- return key_event.GetKeyCode() == ui::VKEY_TAB &&
- !key_event.IsControlDown();
+ return key_event.key_code() == ui::VKEY_TAB && !key_event.IsControlDown();
}
void FocusManager::ViewRemoved(View* parent, View* removed) {

Powered by Google App Engine
This is Rietveld 408576698