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_RELOAD_BUTTON_H__ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_RELOAD_BUTTON_H__ |
6 #define CHROME_BROWSER_UI_VIEWS_RELOAD_BUTTON_H__ | 6 #define CHROME_BROWSER_UI_VIEWS_RELOAD_BUTTON_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/timer.h" | 10 #include "base/timer.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const ui::Event& event) OVERRIDE; | 52 const ui::Event& event) OVERRIDE; |
53 | 53 |
54 // Overridden from views::View: | 54 // Overridden from views::View: |
55 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; | 55 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; |
56 virtual bool GetTooltipText(const gfx::Point& p, | 56 virtual bool GetTooltipText(const gfx::Point& p, |
57 string16* tooltip) const OVERRIDE; | 57 string16* tooltip) const OVERRIDE; |
58 virtual const char* GetClassName() const OVERRIDE; | 58 virtual const char* GetClassName() const OVERRIDE; |
59 | 59 |
60 // Overridden from views::ButtonDropDown: | 60 // Overridden from views::ButtonDropDown: |
61 virtual bool ShouldShowMenu() OVERRIDE; | 61 virtual bool ShouldShowMenu() OVERRIDE; |
62 virtual void ShowDropDownMenu() OVERRIDE; | 62 virtual void ShowDropDownMenu(ui::MenuSourceType source_type) OVERRIDE; |
63 | 63 |
64 // Overridden from ui::SimpleMenuModel::Delegate: | 64 // Overridden from ui::SimpleMenuModel::Delegate: |
65 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 65 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; |
66 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 66 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; |
67 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; | 67 virtual bool IsCommandIdVisible(int command_id) const OVERRIDE; |
68 virtual bool GetAcceleratorForCommandId( | 68 virtual bool GetAcceleratorForCommandId( |
69 int command_id, | 69 int command_id, |
70 ui::Accelerator* accelerator) OVERRIDE; | 70 ui::Accelerator* accelerator) OVERRIDE; |
71 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; | 71 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; |
72 | 72 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // True if we should pretend the button is hovered. | 111 // True if we should pretend the button is hovered. |
112 bool testing_mouse_hovered_; | 112 bool testing_mouse_hovered_; |
113 // Increments when we would tell the browser to "reload", so | 113 // Increments when we would tell the browser to "reload", so |
114 // test code can tell whether we did so (as there may be no |browser_|). | 114 // test code can tell whether we did so (as there may be no |browser_|). |
115 int testing_reload_count_; | 115 int testing_reload_count_; |
116 | 116 |
117 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButton); | 117 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButton); |
118 }; | 118 }; |
119 | 119 |
120 #endif // CHROME_BROWSER_UI_VIEWS_RELOAD_BUTTON_H__ | 120 #endif // CHROME_BROWSER_UI_VIEWS_RELOAD_BUTTON_H__ |
OLD | NEW |