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

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

Issue 4090011: Fix bug with context menus in incognito mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: manifest fix Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void AppendBidiSubMenu(); 96 void AppendBidiSubMenu();
97 97
98 // This is a helper function to append items for one particular extension. 98 // This is a helper function to append items for one particular extension.
99 // The |index| parameter is used for assigning id's, and is incremented for 99 // The |index| parameter is used for assigning id's, and is incremented for
100 // each item actually added. 100 // each item actually added.
101 void AppendExtensionItems(const std::string& extension_id, int* index); 101 void AppendExtensionItems(const std::string& extension_id, int* index);
102 102
103 // Used for recursively adding submenus of extension items. 103 // Used for recursively adding submenus of extension items.
104 void RecursivelyAppendExtensionItems( 104 void RecursivelyAppendExtensionItems(
105 const std::vector<ExtensionMenuItem*>& items, 105 const std::vector<ExtensionMenuItem*>& items,
106 bool can_cross_incognito,
106 menus::SimpleMenuModel* menu_model, 107 menus::SimpleMenuModel* menu_model,
107 int *index); 108 int *index);
108 // This will set the icon on the most recently-added item in the menu_model_. 109 // This will set the icon on the most recently-added item in the menu_model_.
109 void SetExtensionIcon(const std::string& extension_id); 110 void SetExtensionIcon(const std::string& extension_id);
110 111
111 // Opens the specified URL string in a new tab. If |in_current_window| is 112 // Opens the specified URL string in a new tab. If |in_current_window| is
112 // false, a new window is created to hold the new tab. 113 // false, a new window is created to hold the new tab.
113 void OpenURL(const GURL& url, 114 void OpenURL(const GURL& url,
114 WindowOpenDisposition disposition, 115 WindowOpenDisposition disposition,
115 PageTransition::Type transition); 116 PageTransition::Type transition);
(...skipping 21 matching lines...) Expand all
137 GURL selection_navigation_url_; 138 GURL selection_navigation_url_;
138 139
139 menus::SimpleMenuModel spellcheck_submenu_model_; 140 menus::SimpleMenuModel spellcheck_submenu_model_;
140 menus::SimpleMenuModel bidi_submenu_model_; 141 menus::SimpleMenuModel bidi_submenu_model_;
141 ScopedVector<menus::SimpleMenuModel> extension_menu_models_; 142 ScopedVector<menus::SimpleMenuModel> extension_menu_models_;
142 143
143 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 144 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
144 }; 145 };
145 146
146 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 147 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_test_message_listener.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698