| OLD | NEW |
| 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 <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 const extensions::MenuItem* item); | 114 const extensions::MenuItem* item); |
| 115 #endif | 115 #endif |
| 116 | 116 |
| 117 // RenderViewContextMenuBase: | 117 // RenderViewContextMenuBase: |
| 118 void InitMenu() override; | 118 void InitMenu() override; |
| 119 void RecordShownItem(int id) override; | 119 void RecordShownItem(int id) override; |
| 120 #if BUILDFLAG(ENABLE_PLUGINS) | 120 #if BUILDFLAG(ENABLE_PLUGINS) |
| 121 void HandleAuthorizeAllPlugins() override; | 121 void HandleAuthorizeAllPlugins() override; |
| 122 #endif | 122 #endif |
| 123 void NotifyMenuShown() override; | 123 void NotifyMenuShown() override; |
| 124 void NotifyURLOpened(const GURL& url, | |
| 125 content::WebContents* new_contents) override; | |
| 126 | 124 |
| 127 // Gets the extension (if any) associated with the WebContents that we're in. | 125 // Gets the extension (if any) associated with the WebContents that we're in. |
| 128 const extensions::Extension* GetExtension() const; | 126 const extensions::Extension* GetExtension() const; |
| 129 | 127 |
| 130 void AppendDeveloperItems(); | 128 void AppendDeveloperItems(); |
| 131 void AppendDevtoolsForUnpackedExtensions(); | 129 void AppendDevtoolsForUnpackedExtensions(); |
| 132 void AppendLinkItems(); | 130 void AppendLinkItems(); |
| 133 void AppendOpenWithLinkItems(); | 131 void AppendOpenWithLinkItems(); |
| 134 void AppendImageItems(); | 132 void AppendImageItems(); |
| 135 void AppendAudioItems(); | 133 void AppendAudioItems(); |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 243 |
| 246 // In the case of a MimeHandlerView this will point to the WebContents that | 244 // In the case of a MimeHandlerView this will point to the WebContents that |
| 247 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as | 245 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as |
| 248 // |source_web_contents_|. | 246 // |source_web_contents_|. |
| 249 content::WebContents* const embedder_web_contents_; | 247 content::WebContents* const embedder_web_contents_; |
| 250 | 248 |
| 251 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 249 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 252 }; | 250 }; |
| 253 | 251 |
| 254 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ | 252 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |