| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 void RecursivelyAppendExtensionItems( | 106 void RecursivelyAppendExtensionItems( |
| 107 const std::vector<ExtensionMenuItem*>& items, | 107 const std::vector<ExtensionMenuItem*>& items, |
| 108 bool can_cross_incognito, | 108 bool can_cross_incognito, |
| 109 ui::SimpleMenuModel* menu_model, | 109 ui::SimpleMenuModel* menu_model, |
| 110 int *index); | 110 int *index); |
| 111 // This will set the icon on the most recently-added item in the menu_model_. | 111 // This will set the icon on the most recently-added item in the menu_model_. |
| 112 void SetExtensionIcon(const std::string& extension_id); | 112 void SetExtensionIcon(const std::string& extension_id); |
| 113 | 113 |
| 114 // Opens the specified URL string in a new tab. If |in_current_window| is | 114 // Opens the specified URL string in a new tab. If |in_current_window| is |
| 115 // false, a new window is created to hold the new tab. | 115 // false, a new window is created to hold the new tab. |
| 116 void OpenURL(const GURL& url, | 116 void OpenURL(const GURL& url, const GURL& referrer, |
| 117 WindowOpenDisposition disposition, | 117 WindowOpenDisposition disposition, |
| 118 PageTransition::Type transition); | 118 PageTransition::Type transition); |
| 119 | 119 |
| 120 // Copy to the clipboard an image located at a point in the RenderView | 120 // Copy to the clipboard an image located at a point in the RenderView |
| 121 void CopyImageAt(int x, int y); | 121 void CopyImageAt(int x, int y); |
| 122 | 122 |
| 123 // Launch the inspector targeting a point in the RenderView | 123 // Launch the inspector targeting a point in the RenderView |
| 124 void Inspect(int x, int y); | 124 void Inspect(int x, int y); |
| 125 | 125 |
| 126 // Writes the specified text/url to the system clipboard | 126 // Writes the specified text/url to the system clipboard |
| (...skipping 13 matching lines...) Expand all Loading... |
| 140 GURL selection_navigation_url_; | 140 GURL selection_navigation_url_; |
| 141 | 141 |
| 142 ui::SimpleMenuModel spellcheck_submenu_model_; | 142 ui::SimpleMenuModel spellcheck_submenu_model_; |
| 143 ui::SimpleMenuModel bidi_submenu_model_; | 143 ui::SimpleMenuModel bidi_submenu_model_; |
| 144 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; | 144 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; |
| 145 | 145 |
| 146 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 146 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
| 147 }; | 147 }; |
| 148 | 148 |
| 149 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ | 149 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
| OLD | NEW |