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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // Does this button's action have a popup? | 125 // Does this button's action have a popup? |
126 virtual bool IsPopup(); | 126 virtual bool IsPopup(); |
127 virtual GURL GetPopupUrl(); | 127 virtual GURL GetPopupUrl(); |
128 | 128 |
129 // Overridden from views::View: | 129 // Overridden from views::View: |
130 virtual bool CanHandleAccelerators() const OVERRIDE; | 130 virtual bool CanHandleAccelerators() const OVERRIDE; |
131 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 131 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
132 | 132 |
133 // Overridden from views::ButtonListener: | 133 // Overridden from views::ButtonListener: |
134 virtual void ButtonPressed(views::Button* sender, | 134 virtual void ButtonPressed(views::Button* sender, |
135 const views::Event& event) OVERRIDE; | 135 const ui::Event& event) OVERRIDE; |
136 | 136 |
137 // Overridden from views::ContextMenuController. | 137 // Overridden from views::ContextMenuController. |
138 virtual void ShowContextMenuForView(View* source, | 138 virtual void ShowContextMenuForView(View* source, |
139 const gfx::Point& point) OVERRIDE; | 139 const gfx::Point& point) OVERRIDE; |
140 | 140 |
141 // Overridden from ImageLoadingTracker. | 141 // Overridden from ImageLoadingTracker. |
142 virtual void OnImageLoaded(const gfx::Image& image, | 142 virtual void OnImageLoaded(const gfx::Image& image, |
143 const std::string& extension_id, | 143 const std::string& extension_id, |
144 int index) OVERRIDE; | 144 int index) OVERRIDE; |
145 | 145 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 | 220 |
221 // Responsible for running the menu. | 221 // Responsible for running the menu. |
222 scoped_ptr<views::MenuRunner> menu_runner_; | 222 scoped_ptr<views::MenuRunner> menu_runner_; |
223 | 223 |
224 friend class base::DeleteHelper<BrowserActionButton>; | 224 friend class base::DeleteHelper<BrowserActionButton>; |
225 | 225 |
226 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton); | 226 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton); |
227 }; | 227 }; |
228 | 228 |
229 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ | 229 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ |
OLD | NEW |