OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_RENDERER_HOST_RENDER_VIEW_CONTEXT_MENU_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
7 | 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/gfx/native_widget_types.h" |
| 11 #include "webkit/glue/context_menu.h" |
| 12 |
| 13 // TODO(port): Port this file. |
| 14 #if defined(OS_WIN) |
8 #include "chrome/views/menu.h" | 15 #include "chrome/views/menu.h" |
9 #include "webkit/glue/context_menu.h" | 16 #else |
| 17 #include "chrome/common/temp_scaffolding_stubs.h" |
| 18 #endif |
10 | 19 |
11 class Profile; | 20 class Profile; |
12 | 21 |
13 class RenderViewContextMenu : public Menu { | 22 class RenderViewContextMenu : public Menu { |
14 public: | 23 public: |
15 RenderViewContextMenu( | 24 RenderViewContextMenu( |
16 Menu::Delegate* delegate, | 25 Menu::Delegate* delegate, |
17 HWND owner, | 26 gfx::NativeWindow owner, |
18 ContextNode node, | 27 ContextNode node, |
19 const std::wstring& misspelled_word, | 28 const std::wstring& misspelled_word, |
20 const std::vector<std::wstring>& misspelled_word_suggestions, | 29 const std::vector<std::wstring>& misspelled_word_suggestions, |
21 Profile* profile); | 30 Profile* profile); |
22 | 31 |
23 virtual ~RenderViewContextMenu(); | 32 virtual ~RenderViewContextMenu(); |
24 | 33 |
25 private: | 34 private: |
26 void InitMenu(ContextNode node); | 35 void InitMenu(ContextNode node); |
27 void AppendDeveloperItems(); | 36 void AppendDeveloperItems(); |
28 void AppendLinkItems(); | 37 void AppendLinkItems(); |
29 void AppendImageItems(); | 38 void AppendImageItems(); |
30 void AppendPageItems(); | 39 void AppendPageItems(); |
31 void AppendFrameItems(); | 40 void AppendFrameItems(); |
32 void AppendCopyItem(); | 41 void AppendCopyItem(); |
33 void AppendEditableItems(); | 42 void AppendEditableItems(); |
34 void AppendSearchProvider(); | 43 void AppendSearchProvider(); |
35 | 44 |
36 std::wstring misspelled_word_; | 45 std::wstring misspelled_word_; |
37 std::vector<std::wstring> misspelled_word_suggestions_; | 46 std::vector<std::wstring> misspelled_word_suggestions_; |
38 Profile* profile_; | 47 Profile* profile_; |
39 Menu* spellchecker_sub_menu_; | 48 Menu* spellchecker_sub_menu_; |
40 | 49 |
41 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); | 50 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); |
42 }; | 51 }; |
43 | 52 |
44 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_CONTEXT_MENU_H_ | 53 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ |
45 | 54 |
OLD | NEW |