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

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

Issue 186213003: <webview>: Context menu API implementation CL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @tott Created 6 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 private: 191 private:
192 friend class RenderViewContextMenuTest; 192 friend class RenderViewContextMenuTest;
193 friend class RenderViewContextMenuPrefsTest; 193 friend class RenderViewContextMenuPrefsTest;
194 194
195 static bool IsDevToolsURL(const GURL& url); 195 static bool IsDevToolsURL(const GURL& url);
196 static bool IsInternalResourcesURL(const GURL& url); 196 static bool IsInternalResourcesURL(const GURL& url);
197 static bool ExtensionContextAndPatternMatch( 197 static bool ExtensionContextAndPatternMatch(
198 const content::ContextMenuParams& params, 198 const content::ContextMenuParams& params,
199 extensions::MenuItem::ContextList contexts, 199 extensions::MenuItem::ContextList contexts,
200 const extensions::URLPatternSet& target_url_patterns); 200 const extensions::URLPatternSet& target_url_patterns);
201 static bool MenuItemMatchesParams( 201 static bool MenuItemMatchesParams(const content::ContextMenuParams& params,
202 const content::ContextMenuParams& params, 202 const extensions::MenuItem* item);
203 const extensions::MenuItem* item);
204 203
205 // Gets the extension (if any) associated with the WebContents that we're in. 204 // Gets the extension (if any) associated with the WebContents that we're in.
206 const extensions::Extension* GetExtension() const; 205 const extensions::Extension* GetExtension() const;
207 bool AppendCustomItems(); 206 bool AppendCustomItems();
208 207
209 void AppendDeveloperItems(); 208 void AppendDeveloperItems();
210 void AppendDevtoolsForUnpackedExtensions(); 209 void AppendDevtoolsForUnpackedExtensions();
211 void AppendLinkItems(); 210 void AppendLinkItems();
212 void AppendImageItems(); 211 void AppendImageItems();
213 void AppendAudioItems(); 212 void AppendAudioItems();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 // Whether a command has been executed. Used to track whether menu observers 287 // Whether a command has been executed. Used to track whether menu observers
289 // should be notified of menu closing without execution. 288 // should be notified of menu closing without execution.
290 bool command_executed_; 289 bool command_executed_;
291 290
292 scoped_ptr<ContextMenuContentType> content_type_; 291 scoped_ptr<ContextMenuContentType> content_type_;
293 292
294 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 293 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
295 }; 294 };
296 295
297 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ 296 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/guestview/webview/webview_guest.cc ('k') | chrome/browser/renderer_context_menu/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698