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

Side by Side Diff: chrome/browser/ui/views/action_box_context_menu.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 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_ACTION_BOX_CONTEXT_MENU_H__ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ACTION_BOX_CONTEXT_MENU_H__
6 #define CHROME_BROWSER_UI_VIEWS_ACTION_BOX_CONTEXT_MENU_H__ 6 #define CHROME_BROWSER_UI_VIEWS_ACTION_BOX_CONTEXT_MENU_H__
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 20 matching lines...) Expand all
31 // handled by ActionBoxContextMenuController. 31 // handled by ActionBoxContextMenuController.
32 class ActionBoxContextMenu { 32 class ActionBoxContextMenu {
33 public: 33 public:
34 ActionBoxContextMenu(Browser* browser, 34 ActionBoxContextMenu(Browser* browser,
35 const extensions::Extension* extension); 35 const extensions::Extension* extension);
36 ~ActionBoxContextMenu(); 36 ~ActionBoxContextMenu();
37 37
38 // See comments in menu_runner.h on how the return value should be used. 38 // See comments in menu_runner.h on how the return value should be used.
39 views::MenuRunner::RunResult RunMenuAt( 39 views::MenuRunner::RunResult RunMenuAt(
40 const gfx::Point& p, 40 const gfx::Point& p,
41 views::Widget* parent_widget) WARN_UNUSED_RESULT; 41 views::Widget* parent_widget,
42 ui::MenuSourceType source_type) WARN_UNUSED_RESULT;
42 43
43 private: 44 private:
44 ActionBoxContextMenuController controller_; 45 ActionBoxContextMenuController controller_;
45 scoped_ptr<views::MenuModelAdapter> adapter_; 46 scoped_ptr<views::MenuModelAdapter> adapter_;
46 scoped_ptr<views::MenuRunner> menu_runner_; 47 scoped_ptr<views::MenuRunner> menu_runner_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(ActionBoxContextMenu); 49 DISALLOW_COPY_AND_ASSIGN(ActionBoxContextMenu);
49 }; 50 };
50 51
51 #endif // CHROME_BROWSER_UI_VIEWS_ACTION_BOX_CONTEXT_MENU_H__ 52 #endif // CHROME_BROWSER_UI_VIEWS_ACTION_BOX_CONTEXT_MENU_H__
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/language_switch_menu.cc ('k') | chrome/browser/ui/views/action_box_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698