| 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_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_CONTEXT_MENU_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_CONTEXT_MENU_CONTROLLER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_CONTEXT_MENU_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include "base/string16.h" |
| 10 #include "chrome/common/pref_member.h" | 11 #include "chrome/common/pref_member.h" |
| 11 #include "chrome/common/page_transition_types.h" | 12 #include "chrome/common/page_transition_types.h" |
| 12 #include "webkit/glue/context_menu.h" | 13 #include "webkit/glue/context_menu.h" |
| 13 #include "webkit/glue/window_open_disposition.h" | 14 #include "webkit/glue/window_open_disposition.h" |
| 14 | 15 |
| 15 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 16 // TODO(port): port this file. | 17 // TODO(port): port this file. |
| 17 #include "chrome/views/menu.h" | 18 #include "chrome/views/menu.h" |
| 18 #else | 19 #else |
| 19 #include "chrome/common/temp_scaffolding_stubs.h" | 20 #include "chrome/common/temp_scaffolding_stubs.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 42 WindowOpenDisposition disposition, | 43 WindowOpenDisposition disposition, |
| 43 PageTransition::Type transition); | 44 PageTransition::Type transition); |
| 44 | 45 |
| 45 // Copy to the clipboard an image located at a point in the RenderView | 46 // Copy to the clipboard an image located at a point in the RenderView |
| 46 void CopyImageAt(int x, int y); | 47 void CopyImageAt(int x, int y); |
| 47 | 48 |
| 48 // Launch the inspector targeting a point in the RenderView | 49 // Launch the inspector targeting a point in the RenderView |
| 49 void Inspect(int x, int y); | 50 void Inspect(int x, int y); |
| 50 | 51 |
| 51 // Writes the specified text/url to the system clipboard | 52 // Writes the specified text/url to the system clipboard |
| 52 void WriteTextToClipboard(const std::wstring& text); | 53 void WriteTextToClipboard(const string16& text); |
| 53 void WriteURLToClipboard(const GURL& url); | 54 void WriteURLToClipboard(const GURL& url); |
| 54 | 55 |
| 55 bool IsDevCommandEnabled(int id) const; | 56 bool IsDevCommandEnabled(int id) const; |
| 56 | 57 |
| 57 DISALLOW_EVIL_CONSTRUCTORS(RenderViewContextMenuController); | 58 DISALLOW_EVIL_CONSTRUCTORS(RenderViewContextMenuController); |
| 58 | 59 |
| 59 private: | 60 private: |
| 60 WebContents* source_web_contents_; | 61 WebContents* source_web_contents_; |
| 61 ContextMenuParams params_; | 62 ContextMenuParams params_; |
| 62 StringPrefMember dictionary_language_; | 63 StringPrefMember dictionary_language_; |
| 63 int current_dictionary_language_index_; | 64 int current_dictionary_language_index_; |
| 64 }; | 65 }; |
| 65 | 66 |
| 66 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_CONTEXT_MENU_CONTROLLER_H_ | 67 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_CONTEXT_MENU_CONTROLLER_H_ |
| OLD | NEW |