Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 9235002: Enable devtools via context menu in platform apps and popup extensions. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: More feedback response Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 static bool ExtensionContextAndPatternMatch( 188 static bool ExtensionContextAndPatternMatch(
189 const ContextMenuParams& params, 189 const ContextMenuParams& params,
190 ExtensionMenuItem::ContextList contexts, 190 ExtensionMenuItem::ContextList contexts,
191 const URLPatternSet& target_url_patterns); 191 const URLPatternSet& target_url_patterns);
192 static ExtensionMenuItem::List GetRelevantExtensionItems( 192 static ExtensionMenuItem::List GetRelevantExtensionItems(
193 const ExtensionMenuItem::List& items, 193 const ExtensionMenuItem::List& items,
194 const ContextMenuParams& params, 194 const ContextMenuParams& params,
195 Profile* profile, 195 Profile* profile,
196 bool can_cross_incognito); 196 bool can_cross_incognito);
197 197
198 // Gets the platform app (if any) associated with the TabContents that we're 198 // Gets the extension (if any) associated with the TabContents that we're in.
199 // in. 199 const Extension* GetExtension() const;
200 const Extension* GetPlatformApp() const; 200 void AppendPlatformAppItems(const Extension* platform_app);
201 void AppendPlatformAppItems(); 201 void AppendPopupExtensionItems();
202 bool AppendCustomItems(); 202 bool AppendCustomItems();
203 void AppendDeveloperItems(); 203 void AppendDeveloperItems();
204 void AppendLinkItems(); 204 void AppendLinkItems();
205 void AppendImageItems(); 205 void AppendImageItems();
206 void AppendAudioItems(); 206 void AppendAudioItems();
207 void AppendVideoItems(); 207 void AppendVideoItems();
208 void AppendMediaItems(); 208 void AppendMediaItems();
209 void AppendPluginItems(); 209 void AppendPluginItems();
210 void AppendPageItems(); 210 void AppendPageItems();
211 void AppendFrameItems(); 211 void AppendFrameItems();
212 void AppendCopyItem(); 212 void AppendCopyItem();
213 void AppendEditableItems(); 213 void AppendEditableItems();
214 void AppendSearchProvider(); 214 void AppendSearchProvider();
215 void AppendAllExtensionItems(); 215 void AppendAllExtensionItems();
216 void AppendSpellingSuggestionsSubMenu();
216 void AppendSpellcheckOptionsSubMenu(); 217 void AppendSpellcheckOptionsSubMenu();
217 void AppendSpeechInputOptionsSubMenu(); 218 void AppendSpeechInputOptionsSubMenu();
218 // Add writing direction sub menu (only used on Mac). 219 // Add writing direction sub menu (only used on Mac).
219 void AppendBidiSubMenu(); 220 void AppendBidiSubMenu();
220 void AppendProtocolHandlerSubMenu(); 221 void AppendProtocolHandlerSubMenu();
221 222
222 // This is a helper function to append items for one particular extension. 223 // This is a helper function to append items for one particular extension.
223 // The |index| parameter is used for assigning id's, and is incremented for 224 // The |index| parameter is used for assigning id's, and is incremented for
224 // each item actually added. 225 // each item actually added.
225 void AppendExtensionItems(const std::string& extension_id, int* index); 226 void AppendExtensionItems(const std::string& extension_id, int* index);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // An observer that disables menu items when print preview is active. 284 // An observer that disables menu items when print preview is active.
284 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_; 285 scoped_ptr<PrintPreviewContextMenuObserver> print_preview_menu_observer_;
285 286
286 // Our observers. 287 // Our observers.
287 mutable ObserverList<RenderViewContextMenuObserver> observers_; 288 mutable ObserverList<RenderViewContextMenuObserver> observers_;
288 289
289 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 290 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
290 }; 291 };
291 292
292 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 293 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698