OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_VIEWS_GO_BUTTON_H__ | 5 #ifndef CHROME_BROWSER_VIEWS_GO_BUTTON_H__ |
6 #define CHROME_BROWSER_VIEWS_GO_BUTTON_H__ | 6 #define CHROME_BROWSER_VIEWS_GO_BUTTON_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 #include "views/controls/button/image_button.h" | 10 #include "views/controls/button/image_button.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // Overridden from views::ButtonListener: | 39 // Overridden from views::ButtonListener: |
40 virtual void ButtonPressed(views::Button* button, const views::Event& event); | 40 virtual void ButtonPressed(views::Button* button, const views::Event& event); |
41 | 41 |
42 // Overridden from views::View: | 42 // Overridden from views::View: |
43 virtual void OnMouseExited(const views::MouseEvent& e); | 43 virtual void OnMouseExited(const views::MouseEvent& e); |
44 virtual bool GetTooltipText(int x, int y, std::wstring* tooltip); | 44 virtual bool GetTooltipText(int x, int y, std::wstring* tooltip); |
45 | 45 |
46 private: | 46 private: |
47 void OnButtonTimer(); | 47 void OnButtonTimer(); |
48 | 48 |
49 int button_delay_; | |
50 ScopedRunnableMethodFactory<GoButton> stop_timer_; | 49 ScopedRunnableMethodFactory<GoButton> stop_timer_; |
51 | 50 |
52 LocationBarView* location_bar_; | 51 LocationBarView* location_bar_; |
53 Browser* browser_; | 52 Browser* browser_; |
54 | 53 |
55 // The mode we should be in | 54 // The mode we should be in |
56 Mode intended_mode_; | 55 Mode intended_mode_; |
57 | 56 |
58 // The currently-visible mode - this may different from the intended mode | 57 // The currently-visible mode - this may different from the intended mode |
59 Mode visible_mode_; | 58 Mode visible_mode_; |
60 | 59 |
61 DISALLOW_COPY_AND_ASSIGN(GoButton); | 60 DISALLOW_COPY_AND_ASSIGN(GoButton); |
62 }; | 61 }; |
63 | 62 |
64 #endif // CHROME_BROWSER_VIEWS_GO_BUTTON_H__ | 63 #endif // CHROME_BROWSER_VIEWS_GO_BUTTON_H__ |
OLD | NEW |