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 | 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 Loading... |
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 Loading... |
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_ |
OLD | NEW |