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

Side by Side Diff: chrome/browser/ui/views/browser_action_view.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_BROWSER_ACTION_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/extensions/extension_action_icon_factory.h" 10 #include "chrome/browser/extensions/extension_action_icon_factory.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 // Overridden from views::View: 131 // Overridden from views::View:
132 virtual bool CanHandleAccelerators() const OVERRIDE; 132 virtual bool CanHandleAccelerators() const OVERRIDE;
133 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 133 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
134 134
135 // Overridden from views::ButtonListener: 135 // Overridden from views::ButtonListener:
136 virtual void ButtonPressed(views::Button* sender, 136 virtual void ButtonPressed(views::Button* sender,
137 const ui::Event& event) OVERRIDE; 137 const ui::Event& event) OVERRIDE;
138 138
139 // Overridden from views::ContextMenuController. 139 // Overridden from views::ContextMenuController.
140 virtual void ShowContextMenuForView(View* source, 140 virtual void ShowContextMenuForView(View* source,
141 const gfx::Point& point) OVERRIDE; 141 const gfx::Point& point,
142 ui::MenuSourceType source_type) OVERRIDE;
142 143
143 // Overridden from content::NotificationObserver: 144 // Overridden from content::NotificationObserver:
144 virtual void Observe(int type, 145 virtual void Observe(int type,
145 const content::NotificationSource& source, 146 const content::NotificationSource& source,
146 const content::NotificationDetails& details) OVERRIDE; 147 const content::NotificationDetails& details) OVERRIDE;
147 148
148 // Overriden from ExtensionActionIconFactory::Observer. 149 // Overriden from ExtensionActionIconFactory::Observer.
149 virtual void OnIconUpdated() OVERRIDE; 150 virtual void OnIconUpdated() OVERRIDE;
150 151
151 // MenuButton behavior overrides. These methods all default to TextButton 152 // MenuButton behavior overrides. These methods all default to TextButton
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 229
229 // Responsible for running the menu. 230 // Responsible for running the menu.
230 scoped_ptr<views::MenuRunner> menu_runner_; 231 scoped_ptr<views::MenuRunner> menu_runner_;
231 232
232 friend class base::DeleteHelper<BrowserActionButton>; 233 friend class base::DeleteHelper<BrowserActionButton>;
233 234
234 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton); 235 DISALLOW_COPY_AND_ASSIGN(BrowserActionButton);
235 }; 236 };
236 237
237 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_ 238 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTION_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc ('k') | chrome/browser/ui/views/browser_action_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698