OLD | NEW |
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 Loading... |
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__ |
OLD | NEW |