| 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_RENDER_VIEW_CONTEXT_MENU_H__ | 5 #ifndef CHROME_BROWSER_RENDER_VIEW_CONTEXT_MENU_H__ |
| 6 #define CHROME_BROWSER_RENDER_VIEW_CONTEXT_MENU_H__ | 6 #define CHROME_BROWSER_RENDER_VIEW_CONTEXT_MENU_H__ |
| 7 | 7 |
| 8 #include "chrome/views/menu.h" | 8 #include "chrome/views/menu.h" |
| 9 #include "webkit/glue/context_node_types.h" | 9 #include "webkit/glue/context_node_types.h" |
| 10 | 10 |
| 11 class Profile; | 11 class Profile; |
| 12 | 12 |
| 13 class RenderViewContextMenu : public Menu { | 13 class RenderViewContextMenu : public Menu { |
| 14 public: | 14 public: |
| 15 RenderViewContextMenu( | 15 RenderViewContextMenu( |
| 16 Menu::Delegate* delegate, | 16 Menu::Delegate* delegate, |
| 17 HWND owner, | 17 HWND owner, |
| 18 ContextNode::Type type, | 18 ContextNode node, |
| 19 const std::wstring& misspelled_word, | 19 const std::wstring& misspelled_word, |
| 20 const std::vector<std::wstring>& misspelled_word_suggestions, | 20 const std::vector<std::wstring>& misspelled_word_suggestions, |
| 21 Profile* profile); | 21 Profile* profile); |
| 22 | 22 |
| 23 virtual ~RenderViewContextMenu(); | 23 virtual ~RenderViewContextMenu(); |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 void InitMenu(ContextNode::Type type); | 26 void InitMenu(ContextNode node); |
| 27 void AppendDeveloperItems(); | 27 void AppendDeveloperItems(); |
| 28 void AppendLinkItems(); | 28 void AppendLinkItems(); |
| 29 void AppendImageItems(); | 29 void AppendImageItems(); |
| 30 void AppendPageItems(); | 30 void AppendPageItems(); |
| 31 void AppendFrameItems(); | 31 void AppendFrameItems(); |
| 32 void AppendSelectionItems(); | 32 void AppendCopyItem(); |
| 33 void AppendEditableItems(); | 33 void AppendEditableItems(); |
| 34 void AppendSearchProvider(); |
| 34 | 35 |
| 35 std::wstring misspelled_word_; | 36 std::wstring misspelled_word_; |
| 36 std::vector<std::wstring> misspelled_word_suggestions_; | 37 std::vector<std::wstring> misspelled_word_suggestions_; |
| 37 Profile* profile_; | 38 Profile* profile_; |
| 38 Menu* spellchecker_sub_menu_; | 39 Menu* spellchecker_sub_menu_; |
| 39 | 40 |
| 40 DISALLOW_EVIL_CONSTRUCTORS(RenderViewContextMenu); | 41 DISALLOW_EVIL_CONSTRUCTORS(RenderViewContextMenu); |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 #endif // CHROME_BROWSER_RENDER_VIEW_CONTEXT_MENU_H__ | 44 #endif // CHROME_BROWSER_RENDER_VIEW_CONTEXT_MENU_H__ |
| 44 | 45 |
| OLD | NEW |