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

Unified Diff: chrome/browser/chromeos/status/input_method_menu.h

Issue 9693022: views: Rename MenuButtonDelegate::RunMenu to something more obvious. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: menu_button_listener.h Created 8 years, 9 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: chrome/browser/chromeos/status/input_method_menu.h
diff --git a/chrome/browser/chromeos/status/input_method_menu.h b/chrome/browser/chromeos/status/input_method_menu.h
index 37d5e4daee4eb005c20af285fb6750fbdb62dc42..d85bcd0790e4454651bcccd3ded612a185c647cd 100644
--- a/chrome/browser/chromeos/status/input_method_menu.h
+++ b/chrome/browser/chromeos/status/input_method_menu.h
@@ -15,7 +15,7 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/notification_types.h"
#include "ui/base/models/menu_model.h"
-#include "ui/views/controls/button/menu_button_delegate.h"
+#include "ui/views/controls/button/menu_button_listener.h"
#include "ui/views/controls/menu/menu_item_view.h"
class PrefService;
@@ -34,11 +34,11 @@ class MenuRunner;
namespace chromeos {
// A class for the dropdown menu for switching input method and keyboard layout.
-// Since the class provides the views::MenuButtonDelegate interface, it's easy
+// Since the class provides the views::MenuButtonListener interface, it's easy
// to create a button widget (e.g. views::MenuButton, StatusAreaButton) which
// shows the dropdown menu on click.
class InputMethodMenu
- : public views::MenuButtonDelegate,
+ : public views::MenuButtonListener,
public ui::MenuModel,
public input_method::InputMethodManager::Observer,
public input_method::InputMethodManager::PreferenceObserver,
@@ -69,9 +69,9 @@ class InputMethodMenu
virtual void MenuWillShow() OVERRIDE;
virtual void SetMenuModelDelegate(ui::MenuModelDelegate* delegate) OVERRIDE;
- // views::MenuButtonDelegate implementation. Sub classes can override the
- // method to adjust the position of the menu.
- virtual void RunMenu(views::View* source, const gfx::Point& pt) OVERRIDE;
+ // views::MenuButtonListener implementation.
+ virtual void OnMenuButtonClicked(views::View* source,
+ const gfx::Point& point) OVERRIDE;
// InputMethodManager::Observer implementation.
virtual void InputMethodChanged(
« no previous file with comments | « chrome/browser/chromeos/status/clock_menu_button.cc ('k') | chrome/browser/chromeos/status/input_method_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698