OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_ |
6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_ | 6 #define CHROME_BROWSER_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "app/menus/simple_menu_model.h" | |
10 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
11 #include "base/scoped_vector.h" | 10 #include "base/scoped_vector.h" |
12 #include "chrome/browser/tab_contents/render_view_context_menu.h" | 11 #include "chrome/browser/tab_contents/render_view_context_menu.h" |
13 #include "views/controls/menu/menu_2.h" | 12 #include "views/controls/menu/menu_2.h" |
14 | 13 |
15 class RenderViewContextMenuViews : public RenderViewContextMenu { | 14 class RenderViewContextMenuViews : public RenderViewContextMenu { |
16 public: | 15 public: |
17 RenderViewContextMenuViews(TabContents* tab_contents, | 16 RenderViewContextMenuViews(TabContents* tab_contents, |
18 const ContextMenuParams& params); | 17 const ContextMenuParams& params); |
19 | 18 |
(...skipping 22 matching lines...) Expand all Loading... |
42 // The current radio group for radio menu items. | 41 // The current radio group for radio menu items. |
43 int current_radio_group_id_; | 42 int current_radio_group_id_; |
44 | 43 |
45 // The context menu itself and its contents. | 44 // The context menu itself and its contents. |
46 scoped_ptr<views::Menu2> menu_; | 45 scoped_ptr<views::Menu2> menu_; |
47 | 46 |
48 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuViews); | 47 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuViews); |
49 }; | 48 }; |
50 | 49 |
51 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_ | 50 #endif // CHROME_BROWSER_VIEWS_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_VIEWS_H_ |
OLD | NEW |