OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 class GURL; | 62 class GURL; |
63 class IntentsDispatcher; | 63 class IntentsDispatcher; |
64 class JavaBridgeDispatcher; | 64 class JavaBridgeDispatcher; |
65 class LoadProgressTracker; | 65 class LoadProgressTracker; |
66 class MediaStreamImpl; | 66 class MediaStreamImpl; |
67 class NotificationProvider; | 67 class NotificationProvider; |
68 class PepperDeviceTest; | 68 class PepperDeviceTest; |
69 class PrintWebViewHelper; | 69 class PrintWebViewHelper; |
70 class RenderWidgetFullscreenPepper; | 70 class RenderWidgetFullscreenPepper; |
71 class RendererAccessibility; | 71 class RendererAccessibility; |
| 72 #if defined(ENABLE_INPUT_COLOR) |
| 73 class RendererWebColorChooserImpl; |
| 74 #endif // defined(ENABLE_INPUT_COLOR) |
72 class SkBitmap; | 75 class SkBitmap; |
73 class SpeechInputDispatcher; | 76 class SpeechInputDispatcher; |
74 class WebPluginDelegateProxy; | 77 class WebPluginDelegateProxy; |
75 class WebUIBindings; | 78 class WebUIBindings; |
76 struct ContextMenuMediaParams; | 79 struct ContextMenuMediaParams; |
77 struct PP_Flash_NetAddress; | 80 struct PP_Flash_NetAddress; |
78 struct ViewHostMsg_RunFileChooser_Params; | 81 struct ViewHostMsg_RunFileChooser_Params; |
79 struct ViewMsg_SwapOut_Params; | 82 struct ViewMsg_SwapOut_Params; |
80 struct ViewMsg_Navigate_Params; | 83 struct ViewMsg_Navigate_Params; |
81 struct ViewMsg_StopFinding_Params; | 84 struct ViewMsg_StopFinding_Params; |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 WebKit::WebFileChooserCompletion* chooser_completion); | 345 WebKit::WebFileChooserCompletion* chooser_completion); |
343 virtual void didStartLoading(); | 346 virtual void didStartLoading(); |
344 virtual void didStopLoading(); | 347 virtual void didStopLoading(); |
345 virtual void didChangeLoadProgress(WebKit::WebFrame* frame, | 348 virtual void didChangeLoadProgress(WebKit::WebFrame* frame, |
346 double load_progress); | 349 double load_progress); |
347 virtual bool isSmartInsertDeleteEnabled(); | 350 virtual bool isSmartInsertDeleteEnabled(); |
348 virtual bool isSelectTrailingWhitespaceEnabled(); | 351 virtual bool isSelectTrailingWhitespaceEnabled(); |
349 virtual void didChangeSelection(bool is_selection_empty); | 352 virtual void didChangeSelection(bool is_selection_empty); |
350 virtual void didExecuteCommand(const WebKit::WebString& command_name); | 353 virtual void didExecuteCommand(const WebKit::WebString& command_name); |
351 virtual bool handleCurrentKeyboardEvent(); | 354 virtual bool handleCurrentKeyboardEvent(); |
| 355 #if defined(ENABLE_INPUT_COLOR) |
| 356 virtual WebKit::WebColorChooser* colorChooser(); |
| 357 #endif // defined(ENABLE_INPUT_COLOR) |
352 virtual bool runFileChooser( | 358 virtual bool runFileChooser( |
353 const WebKit::WebFileChooserParams& params, | 359 const WebKit::WebFileChooserParams& params, |
354 WebKit::WebFileChooserCompletion* chooser_completion); | 360 WebKit::WebFileChooserCompletion* chooser_completion); |
355 virtual void runModalAlertDialog(WebKit::WebFrame* frame, | 361 virtual void runModalAlertDialog(WebKit::WebFrame* frame, |
356 const WebKit::WebString& message); | 362 const WebKit::WebString& message); |
357 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, | 363 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, |
358 const WebKit::WebString& message); | 364 const WebKit::WebString& message); |
359 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, | 365 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, |
360 const WebKit::WebString& message, | 366 const WebKit::WebString& message, |
361 const WebKit::WebString& default_value, | 367 const WebKit::WebString& default_value, |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 const gfx::Point& client_pt, | 794 const gfx::Point& client_pt, |
789 const gfx::Point& screen_pt, | 795 const gfx::Point& screen_pt, |
790 WebKit::WebDragOperationsMask operations_allowed); | 796 WebKit::WebDragOperationsMask operations_allowed); |
791 void OnDragTargetDragLeave(); | 797 void OnDragTargetDragLeave(); |
792 void OnDragTargetDragOver(const gfx::Point& client_pt, | 798 void OnDragTargetDragOver(const gfx::Point& client_pt, |
793 const gfx::Point& screen_pt, | 799 const gfx::Point& screen_pt, |
794 WebKit::WebDragOperationsMask operations_allowed); | 800 WebKit::WebDragOperationsMask operations_allowed); |
795 void OnEnablePreferredSizeChangedMode(int flags); | 801 void OnEnablePreferredSizeChangedMode(int flags); |
796 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); | 802 void OnEnumerateDirectoryResponse(int id, const std::vector<FilePath>& paths); |
797 void OnExecuteEditCommand(const std::string& name, const std::string& value); | 803 void OnExecuteEditCommand(const std::string& name, const std::string& value); |
| 804 #if defined(ENABLE_INPUT_COLOR) |
| 805 void OnDidChooseColorResponse(WebKit::WebColor color); |
| 806 void OnDidCleanupColorChooser(); |
| 807 #endif // defined(ENABLE_INPUT_COLOR) |
798 void OnFileChooserResponse(const std::vector<FilePath>& paths); | 808 void OnFileChooserResponse(const std::vector<FilePath>& paths); |
799 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); | 809 void OnFind(int request_id, const string16&, const WebKit::WebFindOptions&); |
800 void OnFindReplyAck(); | 810 void OnFindReplyAck(); |
801 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); | 811 void OnGetAllSavableResourceLinksForCurrentPage(const GURL& page_url); |
802 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( | 812 void OnGetSerializedHtmlDataForCurrentPageWithLocalLinks( |
803 const std::vector<GURL>& links, | 813 const std::vector<GURL>& links, |
804 const std::vector<FilePath>& local_paths, | 814 const std::vector<FilePath>& local_paths, |
805 const FilePath& local_directory_name); | 815 const FilePath& local_directory_name); |
806 void OnLockMouseACK(bool succeeded); | 816 void OnLockMouseACK(bool succeeded); |
807 void OnMediaPlayerActionAt(const gfx::Point& location, | 817 void OnMediaPlayerActionAt(const gfx::Point& location, |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 | 1169 |
1160 DevToolsAgent* devtools_agent_; | 1170 DevToolsAgent* devtools_agent_; |
1161 | 1171 |
1162 RendererAccessibility* renderer_accessibility_; | 1172 RendererAccessibility* renderer_accessibility_; |
1163 | 1173 |
1164 // Java Bridge dispatcher attached to this view; lazily initialized. | 1174 // Java Bridge dispatcher attached to this view; lazily initialized. |
1165 scoped_ptr<JavaBridgeDispatcher> java_bridge_dispatcher_; | 1175 scoped_ptr<JavaBridgeDispatcher> java_bridge_dispatcher_; |
1166 | 1176 |
1167 // Misc ---------------------------------------------------------------------- | 1177 // Misc ---------------------------------------------------------------------- |
1168 | 1178 |
| 1179 #if defined(ENABLE_INPUT_COLOR) |
| 1180 scoped_ptr<RendererWebColorChooserImpl> color_chooser_; |
| 1181 #endif |
| 1182 |
1169 // The current and pending file chooser completion objects. If the queue is | 1183 // The current and pending file chooser completion objects. If the queue is |
1170 // nonempty, the first item represents the currently running file chooser | 1184 // nonempty, the first item represents the currently running file chooser |
1171 // callback, and the remaining elements are the other file chooser completion | 1185 // callback, and the remaining elements are the other file chooser completion |
1172 // still waiting to be run (in order). | 1186 // still waiting to be run (in order). |
1173 struct PendingFileChooser; | 1187 struct PendingFileChooser; |
1174 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1188 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
1175 | 1189 |
1176 // The current directory enumeration callback | 1190 // The current directory enumeration callback |
1177 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_; | 1191 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_; |
1178 int enumeration_completion_id_; | 1192 int enumeration_completion_id_; |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 // bunch of stuff, you should probably create a helper class and put your | 1242 // bunch of stuff, you should probably create a helper class and put your |
1229 // data and methods on that to avoid bloating RenderView more. You can | 1243 // data and methods on that to avoid bloating RenderView more. You can |
1230 // use the Observer interface to filter IPC messages and receive frame change | 1244 // use the Observer interface to filter IPC messages and receive frame change |
1231 // notifications. | 1245 // notifications. |
1232 // --------------------------------------------------------------------------- | 1246 // --------------------------------------------------------------------------- |
1233 | 1247 |
1234 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1248 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1235 }; | 1249 }; |
1236 | 1250 |
1237 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1251 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |