| 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 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 bool IsReloadEnabled() const; | 157 bool IsReloadEnabled() const; |
| 158 bool IsViewSourceEnabled() const; | 158 bool IsViewSourceEnabled() const; |
| 159 bool IsDevCommandEnabled(int id) const; | 159 bool IsDevCommandEnabled(int id) const; |
| 160 bool IsTranslateEnabled() const; | 160 bool IsTranslateEnabled() const; |
| 161 bool IsSaveLinkAsEnabled() const; | 161 bool IsSaveLinkAsEnabled() const; |
| 162 bool IsSaveImageAsEnabled() const; | 162 bool IsSaveImageAsEnabled() const; |
| 163 bool IsSaveAsEnabled() const; | 163 bool IsSaveAsEnabled() const; |
| 164 bool IsSavePageEnabled() const; | 164 bool IsSavePageEnabled() const; |
| 165 bool IsPasteEnabled() const; | 165 bool IsPasteEnabled() const; |
| 166 bool IsPasteAndMatchStyleEnabled() const; | 166 bool IsPasteAndMatchStyleEnabled() const; |
| 167 bool IsPrintPreviewEnabled() const; |
| 167 bool IsRouteMediaEnabled() const; | 168 bool IsRouteMediaEnabled() const; |
| 168 | 169 |
| 169 // Command execution functions. | 170 // Command execution functions. |
| 170 void ExecOpenLinkNewTab(); | 171 void ExecOpenLinkNewTab(); |
| 171 void ExecProtocolHandler(int event_flags, int handler_index); | 172 void ExecProtocolHandler(int event_flags, int handler_index); |
| 172 void ExecOpenLinkInProfile(int profile_index); | 173 void ExecOpenLinkInProfile(int profile_index); |
| 173 void ExecInspectElement(); | 174 void ExecInspectElement(); |
| 174 void ExecInspectBackgroundPage(); | 175 void ExecInspectBackgroundPage(); |
| 175 void ExecSaveLinkAs(); | 176 void ExecSaveLinkAs(); |
| 176 void ExecSaveAs(); | 177 void ExecSaveAs(); |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 237 |
| 237 // In the case of a MimeHandlerView this will point to the WebContents that | 238 // In the case of a MimeHandlerView this will point to the WebContents that |
| 238 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as | 239 // embeds the MimeHandlerViewGuest. Otherwise this will be the same as |
| 239 // |source_web_contents_|. | 240 // |source_web_contents_|. |
| 240 content::WebContents* const embedder_web_contents_; | 241 content::WebContents* const embedder_web_contents_; |
| 241 | 242 |
| 242 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 243 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 243 }; | 244 }; |
| 244 | 245 |
| 245 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ | 246 #endif // CHROME_BROWSER_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |