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

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

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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__
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_win.cc ('k') | chrome/browser/ui/views/reload_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698