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

Unified Diff: ui/views/controls/button/menu_button.cc

Issue 10825254: Remove views::KeyEvent, replacing uses of it with ui::KeyEvent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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/views/controls/button/menu_button.h ('k') | ui/views/controls/combobox/combobox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/menu_button.cc
===================================================================
--- ui/views/controls/button/menu_button.cc (revision 150588)
+++ ui/views/controls/button/menu_button.cc (working copy)
@@ -9,6 +9,7 @@
#include "grit/ui_strings.h"
#include "ui/base/accessibility/accessible_view_state.h"
#include "ui/base/dragdrop/drag_drop_types.h"
+#include "ui/base/event.h"
#include "ui/base/events.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -227,7 +228,7 @@
return TextButton::OnGestureEvent(event);
}
-bool MenuButton::OnKeyPressed(const KeyEvent& event) {
+bool MenuButton::OnKeyPressed(const ui::KeyEvent& event) {
switch (event.key_code()) {
case ui::VKEY_SPACE:
// Alt-space on windows should show the window menu.
@@ -245,7 +246,7 @@
return false;
}
-bool MenuButton::OnKeyReleased(const KeyEvent& event) {
+bool MenuButton::OnKeyReleased(const ui::KeyEvent& event) {
// Override CustomButton's implementation, which presses the button when
// you press space and clicks it when you release space. For a MenuButton
// we always activate the menu on key press.
« no previous file with comments | « ui/views/controls/button/menu_button.h ('k') | ui/views/controls/combobox/combobox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698