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

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

Issue 3058044: Revert 54955 - Merge 54514 ... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/479/src/
Patch Set: Created 10 years, 4 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
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 14 matching lines...) Expand all
25 namespace gfx { 25 namespace gfx {
26 class Point; 26 class Point;
27 } 27 }
28 28
29 namespace WebKit { 29 namespace WebKit {
30 struct WebMediaPlayerAction; 30 struct WebMediaPlayerAction;
31 } 31 }
32 32
33 class RenderViewContextMenu : public menus::SimpleMenuModel::Delegate { 33 class RenderViewContextMenu : public menus::SimpleMenuModel::Delegate {
34 public: 34 public:
35 static const size_t kMaxExtensionItemTitleLength;
36 static const size_t kMaxSelectionTextLength;
37
38 RenderViewContextMenu(TabContents* tab_contents, 35 RenderViewContextMenu(TabContents* tab_contents,
39 const ContextMenuParams& params); 36 const ContextMenuParams& params);
40 37
41 virtual ~RenderViewContextMenu(); 38 virtual ~RenderViewContextMenu();
42 39
43 // Initializes the context menu. 40 // Initializes the context menu.
44 void Init(); 41 void Init();
45 42
46 // SimpleMenuModel::Delegate implementation. 43 // SimpleMenuModel::Delegate implementation.
47 virtual bool IsCommandIdChecked(int command_id) const; 44 virtual bool IsCommandIdChecked(int command_id) const;
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 GURL selection_navigation_url_; 133 GURL selection_navigation_url_;
137 134
138 menus::SimpleMenuModel spellcheck_submenu_model_; 135 menus::SimpleMenuModel spellcheck_submenu_model_;
139 menus::SimpleMenuModel bidi_submenu_model_; 136 menus::SimpleMenuModel bidi_submenu_model_;
140 ScopedVector<menus::SimpleMenuModel> extension_menu_models_; 137 ScopedVector<menus::SimpleMenuModel> extension_menu_models_;
141 138
142 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 139 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
143 }; 140 };
144 141
145 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 142 #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