OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TOOLBAR_RELOAD_BUTTON_H__ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_RELOAD_BUTTON_H__ |
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_RELOAD_BUTTON_H__ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_RELOAD_BUTTON_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/gtest_prod_util.h" | |
10 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
11 #include "chrome/browser/ui/views/toolbar/toolbar_button.h" | 10 #include "chrome/browser/ui/views/toolbar/toolbar_button.h" |
12 #include "ui/base/models/simple_menu_model.h" | 11 #include "ui/base/models/simple_menu_model.h" |
13 #include "ui/views/controls/button/button.h" | 12 #include "ui/views/controls/button/button.h" |
14 | 13 |
15 class CommandUpdater; | 14 class CommandUpdater; |
16 | 15 |
17 //////////////////////////////////////////////////////////////////////////////// | 16 //////////////////////////////////////////////////////////////////////////////// |
18 // | 17 // |
19 // ReloadButton | 18 // ReloadButton |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // True if we should pretend the button is hovered. | 101 // True if we should pretend the button is hovered. |
103 bool testing_mouse_hovered_; | 102 bool testing_mouse_hovered_; |
104 // Increments when we would tell the browser to "reload", so | 103 // Increments when we would tell the browser to "reload", so |
105 // test code can tell whether we did so (as there may be no |browser_|). | 104 // test code can tell whether we did so (as there may be no |browser_|). |
106 int testing_reload_count_; | 105 int testing_reload_count_; |
107 | 106 |
108 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButton); | 107 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButton); |
109 }; | 108 }; |
110 | 109 |
111 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_RELOAD_BUTTON_H__ | 110 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_RELOAD_BUTTON_H__ |
OLD | NEW |