Chromium Code Reviews| 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 COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ | 5 #ifndef COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ |
| 6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ | 6 #define COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 154 content::RenderFrameHost* GetRenderFrameHost(); | 154 content::RenderFrameHost* GetRenderFrameHost(); |
| 155 | 155 |
| 156 bool IsCustomItemChecked(int id) const; | 156 bool IsCustomItemChecked(int id) const; |
| 157 bool IsCustomItemEnabled(int id) const; | 157 bool IsCustomItemEnabled(int id) const; |
| 158 | 158 |
| 159 // Opens the specified URL string in a new tab. | 159 // Opens the specified URL string in a new tab. |
| 160 void OpenURL(const GURL& url, const GURL& referrer, | 160 void OpenURL(const GURL& url, const GURL& referrer, |
| 161 WindowOpenDisposition disposition, | 161 WindowOpenDisposition disposition, |
| 162 ui::PageTransition transition); | 162 ui::PageTransition transition); |
| 163 | 163 |
| 164 void OpenURL(const GURL& url, const GURL& referrer, | |
|
Alexei Svitkine (slow)
2015/02/20 18:37:27
Overloads are discouraged. OpenURLWithExtraHeaders
Not at Google. Contact bengr
2015/02/21 00:11:17
Done.
| |
| 165 WindowOpenDisposition disposition, | |
| 166 ui::PageTransition transition, | |
| 167 const std::string& extra_headers); | |
| 168 | |
| 164 content::ContextMenuParams params_; | 169 content::ContextMenuParams params_; |
| 165 content::WebContents* source_web_contents_; | 170 content::WebContents* source_web_contents_; |
| 166 content::WebContents* embedded_web_contents_; | 171 content::WebContents* embedded_web_contents_; |
| 167 content::BrowserContext* browser_context_; | 172 content::BrowserContext* browser_context_; |
| 168 | 173 |
| 169 ui::SimpleMenuModel menu_model_; | 174 ui::SimpleMenuModel menu_model_; |
| 170 | 175 |
| 171 // Renderer's frame id. | 176 // Renderer's frame id. |
| 172 int render_frame_id_; | 177 int render_frame_id_; |
| 173 | 178 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 185 | 190 |
| 186 // The RenderFrameHost's IDs. | 191 // The RenderFrameHost's IDs. |
| 187 int render_process_id_; | 192 int render_process_id_; |
| 188 | 193 |
| 189 scoped_ptr<ToolkitDelegate> toolkit_delegate_; | 194 scoped_ptr<ToolkitDelegate> toolkit_delegate_; |
| 190 | 195 |
| 191 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuBase); | 196 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuBase); |
| 192 }; | 197 }; |
| 193 | 198 |
| 194 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ | 199 #endif // COMPONENTS_RENDERER_CONTEXT_MENU_RENDER_VIEW_CONTEXT_MENU_BASE_H_ |
| OLD | NEW |