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

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

Issue 10253021: Restore context menus to hosted app sites. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed unneeded code Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 ExtensionMenuItem::ContextList contexts, 194 ExtensionMenuItem::ContextList contexts,
195 const URLPatternSet& target_url_patterns); 195 const URLPatternSet& target_url_patterns);
196 static ExtensionMenuItem::List GetRelevantExtensionItems( 196 static ExtensionMenuItem::List GetRelevantExtensionItems(
197 const ExtensionMenuItem::List& items, 197 const ExtensionMenuItem::List& items,
198 const content::ContextMenuParams& params, 198 const content::ContextMenuParams& params,
199 Profile* profile, 199 Profile* profile,
200 bool can_cross_incognito); 200 bool can_cross_incognito);
201 201
202 // Gets the extension (if any) associated with the WebContents that we're in. 202 // Gets the extension (if any) associated with the WebContents that we're in.
203 const Extension* GetExtension() const; 203 const Extension* GetExtension() const;
204 void AppendPlatformAppItems(const Extension* platform_app); 204 void AppendPlatformAppItems();
205 void AppendPopupExtensionItems(); 205 void AppendPopupExtensionItems();
206 bool AppendCustomItems(); 206 bool AppendCustomItems();
207 void AppendDeveloperItems(); 207 void AppendDeveloperItems();
208 void AppendLinkItems(); 208 void AppendLinkItems();
209 void AppendImageItems(); 209 void AppendImageItems();
210 void AppendAudioItems(); 210 void AppendAudioItems();
211 void AppendVideoItems(); 211 void AppendVideoItems();
212 void AppendMediaItems(); 212 void AppendMediaItems();
213 void AppendPluginItems(); 213 void AppendPluginItems();
214 void AppendPageItems(); 214 void AppendPageItems();
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 // An observer that disables menu items when print preview is active. 288 // An observer that disables menu items when print preview is active.
289 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; 289 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_;
290 290
291 // Our observers. 291 // Our observers.
292 mutable ObserverList<RenderViewContextMenuObserver> observers_; 292 mutable ObserverList<RenderViewContextMenuObserver> observers_;
293 293
294 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 294 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
295 }; 295 };
296 296
297 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 297 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698