diff options
author | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 23:17:20 +0000 |
---|---|---|
committer | msw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-14 23:17:20 +0000 |
commit | 2c831b235ec39e7e4258cfd93b735de06f079a0e (patch) | |
tree | f0a49df25f1d7736bd8483de7cf09794fc06f055 /chrome/browser/ui/views/browser_actions_container.h | |
parent | 05a1ba49bd770a52a3a84aa2ce6241b0e538d7da (diff) | |
download | chromium_src-2c831b235ec39e7e4258cfd93b735de06f079a0e.zip chromium_src-2c831b235ec39e7e4258cfd93b735de06f079a0e.tar.gz chromium_src-2c831b235ec39e7e4258cfd93b735de06f079a0e.tar.bz2 |
Clean up some event code:
Update some RootView event construction.
Fixup some *MouseExited/OnLeaveNotify codepaths.
Normalize event argument names.
Move View::ConvertPoint*Ancestor defs to private section.
Review URL: http://codereview.chromium.org/6685018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78121 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/browser_actions_container.h')
-rw-r--r-- | chrome/browser/ui/views/browser_actions_container.h | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/chrome/browser/ui/views/browser_actions_container.h b/chrome/browser/ui/views/browser_actions_container.h index e951ddb..d2e1853 100644 --- a/chrome/browser/ui/views/browser_actions_container.h +++ b/chrome/browser/ui/views/browser_actions_container.h @@ -75,31 +75,37 @@ class BrowserActionButton : public views::MenuButton, const SkBitmap& default_icon() const { return default_icon_; } // Overridden from views::View: - virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child); + virtual void ViewHierarchyChanged(bool is_add, + View* parent, + View* child) OVERRIDE; // Overridden from views::ButtonListener: - virtual void ButtonPressed(views::Button* sender, const views::Event& event); + virtual void ButtonPressed(views::Button* sender, + const views::Event& event) OVERRIDE; // Overridden from ImageLoadingTracker. - virtual void OnImageLoaded( - SkBitmap* image, const ExtensionResource& resource, int index); + virtual void OnImageLoaded(SkBitmap* image, + const ExtensionResource& resource, + int index) OVERRIDE; // Overridden from NotificationObserver: virtual void Observe(NotificationType type, const NotificationSource& source, - const NotificationDetails& details); + const NotificationDetails& details) OVERRIDE; // MenuButton behavior overrides. These methods all default to TextButton // behavior unless this button is a popup. In that case, it uses MenuButton // behavior. MenuButton has the notion of a child popup being shown where the // button will stay in the pushed state until the "menu" (a popup in this // case) is dismissed. - virtual bool Activate(); - virtual bool OnMousePressed(const views::MouseEvent& e); - virtual void OnMouseReleased(const views::MouseEvent& e, bool canceled); - virtual bool OnKeyReleased(const views::KeyEvent& e); - virtual void OnMouseExited(const views::MouseEvent& event); - virtual void ShowContextMenu(const gfx::Point& p, bool is_mouse_gesture); + virtual bool Activate() OVERRIDE; + virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; + virtual void OnMouseReleased(const views::MouseEvent& event, + bool canceled) OVERRIDE; + virtual bool OnKeyReleased(const views::KeyEvent& event) OVERRIDE; + virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; + virtual void ShowContextMenu(const gfx::Point& p, + bool is_mouse_gesture) OVERRIDE; // Does this button's action have a popup? virtual bool IsPopup(); |