OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 class GURL; | 64 class GURL; |
65 class JavaBridgeDispatcher; | 65 class JavaBridgeDispatcher; |
66 class LoadProgressTracker; | 66 class LoadProgressTracker; |
67 class MediaStreamDispatcher; | 67 class MediaStreamDispatcher; |
68 class MediaStreamImpl; | 68 class MediaStreamImpl; |
69 class NotificationProvider; | 69 class NotificationProvider; |
70 class PepperDeviceTest; | 70 class PepperDeviceTest; |
71 struct PP_NetAddress_Private; | 71 struct PP_NetAddress_Private; |
72 class RenderWidgetFullscreenPepper; | 72 class RenderWidgetFullscreenPepper; |
73 class RendererAccessibility; | 73 class RendererAccessibility; |
| 74 class RendererWebColorChooserImpl; |
74 class SkBitmap; | 75 class SkBitmap; |
75 class SpeechInputDispatcher; | 76 class SpeechInputDispatcher; |
76 struct ViewMsg_Navigate_Params; | 77 struct ViewMsg_Navigate_Params; |
77 struct ViewMsg_StopFinding_Params; | 78 struct ViewMsg_StopFinding_Params; |
78 struct ViewMsg_SwapOut_Params; | 79 struct ViewMsg_SwapOut_Params; |
79 struct WebDropData; | 80 struct WebDropData; |
80 class WebIntentsHost; | 81 class WebIntentsHost; |
81 class WebPluginDelegateProxy; | 82 class WebPluginDelegateProxy; |
82 class WebUIBindings; | 83 class WebUIBindings; |
83 | 84 |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 WebKit::WebFileChooserCompletion* chooser_completion); | 343 WebKit::WebFileChooserCompletion* chooser_completion); |
343 virtual void didStartLoading(); | 344 virtual void didStartLoading(); |
344 virtual void didStopLoading(); | 345 virtual void didStopLoading(); |
345 virtual void didChangeLoadProgress(WebKit::WebFrame* frame, | 346 virtual void didChangeLoadProgress(WebKit::WebFrame* frame, |
346 double load_progress); | 347 double load_progress); |
347 virtual bool isSmartInsertDeleteEnabled(); | 348 virtual bool isSmartInsertDeleteEnabled(); |
348 virtual bool isSelectTrailingWhitespaceEnabled(); | 349 virtual bool isSelectTrailingWhitespaceEnabled(); |
349 virtual void didChangeSelection(bool is_selection_empty); | 350 virtual void didChangeSelection(bool is_selection_empty); |
350 virtual void didExecuteCommand(const WebKit::WebString& command_name); | 351 virtual void didExecuteCommand(const WebKit::WebString& command_name); |
351 virtual bool handleCurrentKeyboardEvent(); | 352 virtual bool handleCurrentKeyboardEvent(); |
| 353 virtual WebKit::WebColorChooser* createColorChooser( |
| 354 WebKit::WebColorChooserClient*, const WebKit::WebColor& initial_color); |
| 355 void endColorChooser(WebKit::WebColorChooser*); |
352 virtual bool runFileChooser( | 356 virtual bool runFileChooser( |
353 const WebKit::WebFileChooserParams& params, | 357 const WebKit::WebFileChooserParams& params, |
354 WebKit::WebFileChooserCompletion* chooser_completion); | 358 WebKit::WebFileChooserCompletion* chooser_completion); |
355 virtual void runModalAlertDialog(WebKit::WebFrame* frame, | 359 virtual void runModalAlertDialog(WebKit::WebFrame* frame, |
356 const WebKit::WebString& message); | 360 const WebKit::WebString& message); |
357 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, | 361 virtual bool runModalConfirmDialog(WebKit::WebFrame* frame, |
358 const WebKit::WebString& message); | 362 const WebKit::WebString& message); |
359 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, | 363 virtual bool runModalPromptDialog(WebKit::WebFrame* frame, |
360 const WebKit::WebString& message, | 364 const WebKit::WebString& message, |
361 const WebKit::WebString& default_value, | 365 const WebKit::WebString& default_value, |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 | 1161 |
1158 DevToolsAgent* devtools_agent_; | 1162 DevToolsAgent* devtools_agent_; |
1159 | 1163 |
1160 RendererAccessibility* renderer_accessibility_; | 1164 RendererAccessibility* renderer_accessibility_; |
1161 | 1165 |
1162 // Java Bridge dispatcher attached to this view; lazily initialized. | 1166 // Java Bridge dispatcher attached to this view; lazily initialized. |
1163 scoped_ptr<JavaBridgeDispatcher> java_bridge_dispatcher_; | 1167 scoped_ptr<JavaBridgeDispatcher> java_bridge_dispatcher_; |
1164 | 1168 |
1165 // Misc ---------------------------------------------------------------------- | 1169 // Misc ---------------------------------------------------------------------- |
1166 | 1170 |
| 1171 RendererWebColorChooserImpl* color_chooser_; |
| 1172 |
1167 // The current and pending file chooser completion objects. If the queue is | 1173 // The current and pending file chooser completion objects. If the queue is |
1168 // nonempty, the first item represents the currently running file chooser | 1174 // nonempty, the first item represents the currently running file chooser |
1169 // callback, and the remaining elements are the other file chooser completion | 1175 // callback, and the remaining elements are the other file chooser completion |
1170 // still waiting to be run (in order). | 1176 // still waiting to be run (in order). |
1171 struct PendingFileChooser; | 1177 struct PendingFileChooser; |
1172 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1178 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
1173 | 1179 |
1174 // The current directory enumeration callback | 1180 // The current directory enumeration callback |
1175 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_; | 1181 std::map<int, WebKit::WebFileChooserCompletion*> enumeration_completions_; |
1176 int enumeration_completion_id_; | 1182 int enumeration_completion_id_; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1242 // bunch of stuff, you should probably create a helper class and put your | 1248 // bunch of stuff, you should probably create a helper class and put your |
1243 // data and methods on that to avoid bloating RenderView more. You can | 1249 // data and methods on that to avoid bloating RenderView more. You can |
1244 // use the Observer interface to filter IPC messages and receive frame change | 1250 // use the Observer interface to filter IPC messages and receive frame change |
1245 // notifications. | 1251 // notifications. |
1246 // --------------------------------------------------------------------------- | 1252 // --------------------------------------------------------------------------- |
1247 | 1253 |
1248 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1254 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1249 }; | 1255 }; |
1250 | 1256 |
1251 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1257 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |