| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "chrome/browser/extensions/extension_action_icon_factory.h" | 10 #include "chrome/browser/extensions/extension_action_icon_factory.h" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 | 130 |
| 131 // Overridden from views::View: | 131 // Overridden from views::View: |
| 132 virtual bool CanHandleAccelerators() const OVERRIDE; | 132 virtual bool CanHandleAccelerators() const OVERRIDE; |
| 133 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 133 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 134 | 134 |
| 135 // Overridden from views::ButtonListener: | 135 // Overridden from views::ButtonListener: |
| 136 virtual void ButtonPressed(views::Button* sender, | 136 virtual void ButtonPressed(views::Button* sender, |
| 137 const ui::Event& event) OVERRIDE; | 137 const ui::Event& event) OVERRIDE; |
| 138 | 138 |
| 139 // Overridden from views::ContextMenuController. | 139 // Overridden from views::ContextMenuController. |
| 140 virtual void ShowContextMenuForView(View* source, | 140 virtual void ShowContextMenuForView( |
| 141 const gfx::Point& point) OVERRIDE; | 141 View* source, |
| 142 const gfx::Point& point, |
| 143 ui::ContextMenuSourceType source_type) OVERRIDE; |
| 142 | 144 |
| 143 // Overridden from content::NotificationObserver: | 145 // Overridden from content::NotificationObserver: |
| 144 virtual void Observe(int type, | 146 virtual void Observe(int type, |
| 145 const content::NotificationSource& source, | 147 const content::NotificationSource& source, |
| 146 const content::NotificationDetails& details) OVERRIDE; | 148 const content::NotificationDetails& details) OVERRIDE; |
| 147 | 149 |
| 148 // Overriden from ExtensionActionIconFactory::Observer. | 150 // Overriden from ExtensionActionIconFactory::Observer. |
| 149 virtual void OnIconUpdated() OVERRIDE; | 151 virtual void OnIconUpdated() OVERRIDE; |
| 150 | 152 |
| 151 // MenuButton behavior overrides. These methods all default to TextButton | 153 // MenuButton behavior overrides. These methods all default to TextButton |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 230 |
| 229 // Responsible for running the menu. | 231 // Responsible for running the menu. |
| 230 scoped_ptr<views::MenuRunner> menu_runner_; | 232 scoped_ptr<views::MenuRunner> menu_runner_; |
| 231 | 233 |
| 232 friend class base::DeleteHelper<BrowserActionButton>; | 234 friend class base::DeleteHelper<BrowserActionButton>; |
| 233 | 235 |
| 234 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton); | 236 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton); |
| 235 }; | 237 }; |
| 236 | 238 |
| 237 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ | 239 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ |
| OLD | NEW |