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