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

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

Issue 3139007: Added "Look Up in Dictionary" item to context menu for Mac. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: morrita@google.com 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void ExecuteCommand(int command_id); 49 virtual void ExecuteCommand(int command_id);
50 50
51 protected: 51 protected:
52 void InitMenu(); 52 void InitMenu();
53 53
54 // Platform specific functions. 54 // Platform specific functions.
55 virtual void PlatformInit() = 0; 55 virtual void PlatformInit() = 0;
56 virtual bool GetAcceleratorForCommandId( 56 virtual bool GetAcceleratorForCommandId(
57 int command_id, 57 int command_id,
58 menus::Accelerator* accelerator) = 0; 58 menus::Accelerator* accelerator) = 0;
59 virtual void LookUpInDictionary();
59 60
60 // Attempts to get an ExtensionMenuItem given the id of a context menu item. 61 // Attempts to get an ExtensionMenuItem given the id of a context menu item.
61 ExtensionMenuItem* GetExtensionMenuItem(int id) const; 62 ExtensionMenuItem* GetExtensionMenuItem(int id) const;
62 63
63 ContextMenuParams params_; 64 ContextMenuParams params_;
64 TabContents* source_tab_contents_; 65 TabContents* source_tab_contents_;
65 Profile* profile_; 66 Profile* profile_;
66 67
67 menus::SimpleMenuModel menu_model_; 68 menus::SimpleMenuModel menu_model_;
68 69
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 GURL selection_navigation_url_; 137 GURL selection_navigation_url_;
137 138
138 menus::SimpleMenuModel spellcheck_submenu_model_; 139 menus::SimpleMenuModel spellcheck_submenu_model_;
139 menus::SimpleMenuModel bidi_submenu_model_; 140 menus::SimpleMenuModel bidi_submenu_model_;
140 ScopedVector<menus::SimpleMenuModel> extension_menu_models_; 141 ScopedVector<menus::SimpleMenuModel> extension_menu_models_;
141 142
142 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 143 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
143 }; 144 };
144 145
145 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 146 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('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