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/image_loading_tracker.h" | 10 #include "chrome/browser/extensions/image_loading_tracker.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // MenuButton behavior overrides. These methods all default to TextButton | 74 // MenuButton behavior overrides. These methods all default to TextButton |
75 // behavior unless this button is a popup. In that case, it uses MenuButton | 75 // behavior unless this button is a popup. In that case, it uses MenuButton |
76 // behavior. MenuButton has the notion of a child popup being shown where the | 76 // behavior. MenuButton has the notion of a child popup being shown where the |
77 // button will stay in the pushed state until the "menu" (a popup in this | 77 // button will stay in the pushed state until the "menu" (a popup in this |
78 // case) is dismissed. | 78 // case) is dismissed. |
79 virtual bool Activate() OVERRIDE; | 79 virtual bool Activate() OVERRIDE; |
80 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 80 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
81 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 81 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
82 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; | 82 virtual void OnMouseExited(const views::MouseEvent& event) OVERRIDE; |
83 virtual bool OnKeyReleased(const views::KeyEvent& event) OVERRIDE; | 83 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; |
84 | 84 |
85 // Overridden from ui::AcceleratorTarget. | 85 // Overridden from ui::AcceleratorTarget. |
86 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 86 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
87 | 87 |
88 // Notifications when to set button state to pushed/not pushed (for when the | 88 // Notifications when to set button state to pushed/not pushed (for when the |
89 // popup/context menu is hidden or shown by the container). | 89 // popup/context menu is hidden or shown by the container). |
90 void SetButtonPushed(); | 90 void SetButtonPushed(); |
91 void SetButtonNotPushed(); | 91 void SetButtonNotPushed(); |
92 | 92 |
93 // Whether the browser action is enabled on this tab. Note that we cannot use | 93 // Whether the browser action is enabled on this tab. Note that we cannot use |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // The container for this view. | 170 // The container for this view. |
171 BrowserActionsContainer* panel_; | 171 BrowserActionsContainer* panel_; |
172 | 172 |
173 // The button this view contains. | 173 // The button this view contains. |
174 BrowserActionButton* button_; | 174 BrowserActionButton* button_; |
175 | 175 |
176 DISALLOW_COPY_AND_ASSIGN(BrowserActionView); | 176 DISALLOW_COPY_AND_ASSIGN(BrowserActionView); |
177 }; | 177 }; |
178 | 178 |
179 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ | 179 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ |
OLD | NEW |