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

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

Issue 2487002: Disable navigation contextual menus for Sync dialog UI.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 TabContents* source_tab_contents_; 56 TabContents* source_tab_contents_;
57 Profile* profile_; 57 Profile* profile_;
58 58
59 menus::SimpleMenuModel menu_model_; 59 menus::SimpleMenuModel menu_model_;
60 60
61 // True if we are showing for an external tab contents. The default is false. 61 // True if we are showing for an external tab contents. The default is false.
62 bool external_; 62 bool external_;
63 63
64 private: 64 private:
65 static bool IsDevToolsURL(const GURL& url); 65 static bool IsDevToolsURL(const GURL& url);
66 static bool IsSyncResourcesURL(const GURL& url);
66 bool AppendCustomItems(); 67 bool AppendCustomItems();
67 void AppendDeveloperItems(); 68 void AppendDeveloperItems();
68 void AppendLinkItems(); 69 void AppendLinkItems();
69 void AppendImageItems(); 70 void AppendImageItems();
70 void AppendAudioItems(); 71 void AppendAudioItems();
71 void AppendVideoItems(); 72 void AppendVideoItems();
72 void AppendMediaItems(); 73 void AppendMediaItems();
73 void AppendPageItems(); 74 void AppendPageItems();
74 void AppendFrameItems(); 75 void AppendFrameItems();
75 void AppendCopyItem(); 76 void AppendCopyItem();
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 std::map<int, int> extension_item_map_; 125 std::map<int, int> extension_item_map_;
125 126
126 menus::SimpleMenuModel spellcheck_submenu_model_; 127 menus::SimpleMenuModel spellcheck_submenu_model_;
127 menus::SimpleMenuModel bidi_submenu_model_; 128 menus::SimpleMenuModel bidi_submenu_model_;
128 ScopedVector<menus::SimpleMenuModel> extension_menu_models_; 129 ScopedVector<menus::SimpleMenuModel> extension_menu_models_;
129 130
130 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 131 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
131 }; 132 };
132 133
133 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 134 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698