Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: chrome/browser/ui/views/reload_button.h

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 // Enable reload drop-down menu. 45 // Enable reload drop-down menu.
46 void set_menu_enabled(bool enable) { menu_enabled_ = enable; } 46 void set_menu_enabled(bool enable) { menu_enabled_ = enable; }
47 47
48 void LoadImages(ui::ThemeProvider* tp); 48 void LoadImages(ui::ThemeProvider* tp);
49 49
50 // Overridden from views::ButtonListener: 50 // Overridden from views::ButtonListener:
51 virtual void ButtonPressed(views::Button* /* button */, 51 virtual void ButtonPressed(views::Button* /* button */,
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 views::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 std::string GetClassName() const OVERRIDE; 58 virtual std::string 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() 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;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // True if we should pretend the button is hovered. 112 // True if we should pretend the button is hovered.
113 bool testing_mouse_hovered_; 113 bool testing_mouse_hovered_;
114 // Increments when we would tell the browser to "reload", so 114 // Increments when we would tell the browser to "reload", so
115 // test code can tell whether we did so (as there may be no |browser_|). 115 // test code can tell whether we did so (as there may be no |browser_|).
116 int testing_reload_count_; 116 int testing_reload_count_;
117 117
118 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButton); 118 DISALLOW_IMPLICIT_CONSTRUCTORS(ReloadButton);
119 }; 119 };
120 120
121 #endif // CHROME_BROWSER_UI_VIEWS_RELOAD_BUTTON_H__ 121 #endif // CHROME_BROWSER_UI_VIEWS_RELOAD_BUTTON_H__
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.cc ('k') | chrome/browser/ui/views/reload_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698