| 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 | 153 |
| 154 // Load the original image located at a point in the RenderView. | 154 // Load the original image located at a point in the RenderView. |
| 155 void LoadOriginalImage(); | 155 void LoadOriginalImage(); |
| 156 | 156 |
| 157 // Get an image located at a point in the RenderView for search. | 157 // Get an image located at a point in the RenderView for search. |
| 158 void GetImageThumbnailForSearch(); | 158 void GetImageThumbnailForSearch(); |
| 159 | 159 |
| 160 // Launch the inspector targeting a point in the RenderView | 160 // Launch the inspector targeting a point in the RenderView |
| 161 void Inspect(int x, int y); | 161 void Inspect(int x, int y); |
| 162 | 162 |
| 163 void SaveLinkAs(); |
| 164 |
| 163 // Writes the specified text/url to the system clipboard | 165 // Writes the specified text/url to the system clipboard |
| 164 void WriteURLToClipboard(const GURL& url); | 166 void WriteURLToClipboard(const GURL& url); |
| 165 | 167 |
| 166 void MediaPlayerActionAt(const gfx::Point& location, | 168 void MediaPlayerActionAt(const gfx::Point& location, |
| 167 const blink::WebMediaPlayerAction& action); | 169 const blink::WebMediaPlayerAction& action); |
| 168 void PluginActionAt(const gfx::Point& location, | 170 void PluginActionAt(const gfx::Point& location, |
| 169 const blink::WebPluginAction& action); | 171 const blink::WebPluginAction& action); |
| 170 | 172 |
| 171 bool IsDevCommandEnabled(int id) const; | 173 bool IsDevCommandEnabled(int id) const; |
| 172 | 174 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 207 |
| 206 // In the case of a MimeHandlerView this will point to the WebContents that | 208 // In the case of a MimeHandlerView this will point to the WebContents that |
| 207 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as | 209 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as |
| 208 // |source_web_contents_|. | 210 // |source_web_contents_|. |
| 209 content::WebContents* const embedder_web_contents_; | 211 content::WebContents* const embedder_web_contents_; |
| 210 | 212 |
| 211 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 213 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 212 }; | 214 }; |
| 213 | 215 |
| 214 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ | 216 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |