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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 12086018: GTTF: Add missing virtual destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 4 Created 7 years, 10 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_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // // text. 96 // // text.
97 // menu_model_.AddItemWithStringId(IDC_MY_ITEM, IDC_MY_TEXT); 97 // menu_model_.AddItemWithStringId(IDC_MY_ITEM, IDC_MY_TEXT);
98 // 98 //
99 // // Start a task that creates the final text. 99 // // Start a task that creates the final text.
100 // my_task_ = new MyTask(this, IDC_MY_ITEM); 100 // my_task_ = new MyTask(this, IDC_MY_ITEM);
101 // my_task_->Start(...); 101 // my_task_->Start(...);
102 // } 102 // }
103 // 103 //
104 class RenderViewContextMenuProxy { 104 class RenderViewContextMenuProxy {
105 public: 105 public:
106 virtual ~RenderViewContextMenuProxy() { }
107
106 // Add a menu item to a context menu. 108 // Add a menu item to a context menu.
107 virtual void AddMenuItem(int command_id, const string16& title) = 0; 109 virtual void AddMenuItem(int command_id, const string16& title) = 0;
108 virtual void AddCheckItem(int command_id, const string16& title) = 0; 110 virtual void AddCheckItem(int command_id, const string16& title) = 0;
109 virtual void AddSeparator() = 0; 111 virtual void AddSeparator() = 0;
110 112
111 // Add a submenu item to a context menu. 113 // Add a submenu item to a context menu.
112 virtual void AddSubMenu(int command_id, 114 virtual void AddSubMenu(int command_id,
113 const string16& label, 115 const string16& label,
114 ui::MenuModel* model) = 0; 116 ui::MenuModel* model) = 0;
115 117
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // An observer that disables menu items when print preview is active. 277 // An observer that disables menu items when print preview is active.
276 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; 278 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_;
277 279
278 // Our observers. 280 // Our observers.
279 mutable ObserverList<RenderViewContextMenuObserver> observers_; 281 mutable ObserverList<RenderViewContextMenuObserver> observers_;
280 282
281 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 283 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
282 }; 284 };
283 285
284 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 286 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698