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_MAC_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 protected: | 27 protected: |
28 // RenderViewContextMenu implementation- | 28 // RenderViewContextMenu implementation- |
29 virtual void PlatformInit(); | 29 virtual void PlatformInit(); |
30 virtual bool GetAcceleratorForCommandId( | 30 virtual bool GetAcceleratorForCommandId( |
31 int command_id, | 31 int command_id, |
32 menus::Accelerator* accelerator) { | 32 menus::Accelerator* accelerator) { |
33 return false; | 33 return false; |
34 } | 34 } |
35 | 35 |
| 36 virtual void LookUpInDictionary(); |
| 37 |
| 38 void InitPlatformMenu(); |
36 private: | 39 private: |
37 scoped_nsobject<MenuController> menuController_; | 40 scoped_nsobject<MenuController> menuController_; |
38 NSView* parent_view_; // parent view | 41 NSView* parent_view_; // parent view |
39 }; | 42 }; |
40 | 43 |
41 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_ | 44 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_MAC_H_ |
OLD | NEW |