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 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 class WebMediaPlayerManagerAndroid; | 96 class WebMediaPlayerManagerAndroid; |
97 } | 97 } |
98 #endif | 98 #endif |
99 | 99 |
100 namespace WebKit { | 100 namespace WebKit { |
101 class WebApplicationCacheHost; | 101 class WebApplicationCacheHost; |
102 class WebApplicationCacheHostClient; | 102 class WebApplicationCacheHostClient; |
103 class WebCompositorOutputSurface; | 103 class WebCompositorOutputSurface; |
104 class WebDOMMessageEvent; | 104 class WebDOMMessageEvent; |
105 class WebDataSource; | 105 class WebDataSource; |
| 106 class WebDateTimeChooserCompletion; |
106 class WebDragData; | 107 class WebDragData; |
107 class WebGeolocationClient; | 108 class WebGeolocationClient; |
108 class WebGestureEvent; | 109 class WebGestureEvent; |
109 class WebIconURL; | 110 class WebIconURL; |
110 class WebImage; | 111 class WebImage; |
111 class WebPeerConnection00Handler; | 112 class WebPeerConnection00Handler; |
112 class WebPeerConnection00HandlerClient; | 113 class WebPeerConnection00HandlerClient; |
113 class WebMediaPlayer; | 114 class WebMediaPlayer; |
114 class WebMediaPlayerClient; | 115 class WebMediaPlayerClient; |
115 class WebMouseEvent; | 116 class WebMouseEvent; |
116 class WebPeerConnectionHandler; | 117 class WebPeerConnectionHandler; |
117 class WebPeerConnectionHandlerClient; | 118 class WebPeerConnectionHandlerClient; |
118 class WebSocketStreamHandle; | 119 class WebSocketStreamHandle; |
119 class WebSpeechInputController; | 120 class WebSpeechInputController; |
120 class WebSpeechInputListener; | 121 class WebSpeechInputListener; |
121 class WebSpeechRecognizer; | 122 class WebSpeechRecognizer; |
122 class WebStorageNamespace; | 123 class WebStorageNamespace; |
123 class WebTouchEvent; | 124 class WebTouchEvent; |
124 class WebURLRequest; | 125 class WebURLRequest; |
125 class WebUserMediaClient; | 126 class WebUserMediaClient; |
126 struct WebActiveWheelFlingParameters; | 127 struct WebActiveWheelFlingParameters; |
| 128 struct WebDateTimeChooserParams; |
127 struct WebFileChooserParams; | 129 struct WebFileChooserParams; |
128 struct WebFindOptions; | 130 struct WebFindOptions; |
129 struct WebMediaPlayerAction; | 131 struct WebMediaPlayerAction; |
130 struct WebPluginAction; | 132 struct WebPluginAction; |
131 struct WebPoint; | 133 struct WebPoint; |
132 struct WebWindowFeatures; | 134 struct WebWindowFeatures; |
133 | 135 |
134 #if defined(OS_ANDROID) | 136 #if defined(OS_ANDROID) |
135 class WebHitTestResult; | 137 class WebHitTestResult; |
136 #endif | 138 #endif |
(...skipping 12 matching lines...) Expand all Loading... |
149 class JavaBridgeDispatcher; | 151 class JavaBridgeDispatcher; |
150 class LoadProgressTracker; | 152 class LoadProgressTracker; |
151 class MediaStreamDispatcher; | 153 class MediaStreamDispatcher; |
152 class MediaStreamImpl; | 154 class MediaStreamImpl; |
153 class MouseLockDispatcher; | 155 class MouseLockDispatcher; |
154 class NavigationState; | 156 class NavigationState; |
155 class NotificationProvider; | 157 class NotificationProvider; |
156 class RenderViewObserver; | 158 class RenderViewObserver; |
157 class RenderViewTest; | 159 class RenderViewTest; |
158 class RendererAccessibility; | 160 class RendererAccessibility; |
| 161 class RendererDateTimePicker; |
159 class RendererPpapiHost; | 162 class RendererPpapiHost; |
160 class RendererWebColorChooserImpl; | 163 class RendererWebColorChooserImpl; |
161 class RenderWidgetFullscreenPepper; | 164 class RenderWidgetFullscreenPepper; |
162 class SpeechRecognitionDispatcher; | 165 class SpeechRecognitionDispatcher; |
163 class WebIntentsHost; | 166 class WebIntentsHost; |
164 class WebPluginDelegateProxy; | 167 class WebPluginDelegateProxy; |
165 struct CustomContextMenuContext; | 168 struct CustomContextMenuContext; |
166 struct FileChooserParams; | 169 struct FileChooserParams; |
167 struct RenderViewImplParams; | 170 struct RenderViewImplParams; |
168 | 171 |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 const WebKit::WebString& title); | 501 const WebKit::WebString& title); |
499 virtual WebKit::WebPageVisibilityState visibilityState() const; | 502 virtual WebKit::WebPageVisibilityState visibilityState() const; |
500 virtual WebKit::WebUserMediaClient* userMediaClient(); | 503 virtual WebKit::WebUserMediaClient* userMediaClient(); |
501 virtual void draggableRegionsChanged(); | 504 virtual void draggableRegionsChanged(); |
502 | 505 |
503 #if defined(OS_ANDROID) | 506 #if defined(OS_ANDROID) |
504 virtual void scheduleContentIntent(const WebKit::WebURL& intent); | 507 virtual void scheduleContentIntent(const WebKit::WebURL& intent); |
505 virtual void cancelScheduledContentIntents(); | 508 virtual void cancelScheduledContentIntents(); |
506 virtual WebKit::WebContentDetectionResult detectContentAround( | 509 virtual WebKit::WebContentDetectionResult detectContentAround( |
507 const WebKit::WebHitTestResult& touch_hit); | 510 const WebKit::WebHitTestResult& touch_hit); |
| 511 |
| 512 // Only used on Android since all other platforms implement |
| 513 // date and time input fields using MULTIPLE_FIELDS_UI |
| 514 virtual bool openDateTimeChooser(const WebKit::WebDateTimeChooserParams&, |
| 515 WebKit::WebDateTimeChooserCompletion*); |
508 #endif | 516 #endif |
509 | 517 |
510 // WebKit::WebFrameClient implementation ------------------------------------- | 518 // WebKit::WebFrameClient implementation ------------------------------------- |
511 | 519 |
512 virtual WebKit::WebPlugin* createPlugin( | 520 virtual WebKit::WebPlugin* createPlugin( |
513 WebKit::WebFrame* frame, | 521 WebKit::WebFrame* frame, |
514 const WebKit::WebPluginParams& params); | 522 const WebKit::WebPluginParams& params); |
515 virtual WebKit::WebSharedWorker* createSharedWorker( | 523 virtual WebKit::WebSharedWorker* createSharedWorker( |
516 WebKit::WebFrame* frame, const WebKit::WebURL& url, | 524 WebKit::WebFrame* frame, const WebKit::WebURL& url, |
517 const WebKit::WebString& name, unsigned long long documentId); | 525 const WebKit::WebString& name, unsigned long long documentId); |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
818 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 826 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
819 DontIgnoreBackAfterNavEntryLimit); | 827 DontIgnoreBackAfterNavEntryLimit); |
820 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); | 828 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); |
821 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); | 829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); |
822 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); | 830 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); |
823 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); | 831 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); |
824 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); | 832 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); |
825 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); | 833 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); |
826 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged); | 834 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged); |
827 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); | 835 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); |
828 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnReplaceAll); | |
829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); | 836 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); |
830 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); | 837 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); |
831 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); | 838 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); |
832 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); | 839 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ReloadWhileSwappedOut); |
833 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 840 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
834 SetEditableSelectionAndComposition); | 841 SetEditableSelectionAndComposition); |
835 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); | 842 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); |
836 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); | 843 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); |
837 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 844 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
838 GetCompositionCharacterBoundsTest); | 845 GetCompositionCharacterBoundsTest); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
961 const WebKit::WebPluginAction& action); | 968 const WebKit::WebPluginAction& action); |
962 void OnMoveOrResizeStarted(); | 969 void OnMoveOrResizeStarted(); |
963 void OnNavigate(const ViewMsg_Navigate_Params& params); | 970 void OnNavigate(const ViewMsg_Navigate_Params& params); |
964 void OnPaste(); | 971 void OnPaste(); |
965 void OnPasteAndMatchStyle(); | 972 void OnPasteAndMatchStyle(); |
966 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); | 973 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); |
967 void OnRedo(); | 974 void OnRedo(); |
968 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); | 975 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); |
969 void OnReloadFrame(); | 976 void OnReloadFrame(); |
970 void OnReplace(const string16& text); | 977 void OnReplace(const string16& text); |
971 void OnReplaceAll(const string16& text); | |
972 void OnResetPageEncodingToDefault(); | 978 void OnResetPageEncodingToDefault(); |
973 void OnScriptEvalRequest(const string16& frame_xpath, | 979 void OnScriptEvalRequest(const string16& frame_xpath, |
974 const string16& jscript, | 980 const string16& jscript, |
975 int id, | 981 int id, |
976 bool notify_result); | 982 bool notify_result); |
977 void OnSelectAll(); | 983 void OnSelectAll(); |
978 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); | 984 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); |
979 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 985 void OnSetAccessibilityMode(AccessibilityMode new_mode); |
980 void OnSetActive(bool active); | 986 void OnSetActive(bool active); |
981 void OnSetAltErrorPageURL(const GURL& gurl); | 987 void OnSetAltErrorPageURL(const GURL& gurl); |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 // created in the renderer process. | 1455 // created in the renderer process. |
1450 scoped_ptr<webkit_media::MediaPlayerBridgeManagerImpl> media_bridge_manager_; | 1456 scoped_ptr<webkit_media::MediaPlayerBridgeManagerImpl> media_bridge_manager_; |
1451 | 1457 |
1452 // Holds the message used to return find results to the browser during | 1458 // Holds the message used to return find results to the browser during |
1453 // synchronous find-in-page requests. Only non-null during these requests. | 1459 // synchronous find-in-page requests. Only non-null during these requests. |
1454 scoped_ptr<IPC::Message> synchronous_find_reply_message_; | 1460 scoped_ptr<IPC::Message> synchronous_find_reply_message_; |
1455 | 1461 |
1456 // The active find-in-page match ordinal during synchronous requests. | 1462 // The active find-in-page match ordinal during synchronous requests. |
1457 // Needed to be remembered across WebKit callbacks. | 1463 // Needed to be remembered across WebKit callbacks. |
1458 int synchronous_find_active_match_ordinal_; | 1464 int synchronous_find_active_match_ordinal_; |
| 1465 |
| 1466 // A date/time picker object for date and time related input elements. |
| 1467 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; |
1459 #endif | 1468 #endif |
1460 | 1469 |
1461 // Misc ---------------------------------------------------------------------- | 1470 // Misc ---------------------------------------------------------------------- |
1462 | 1471 |
1463 // The current and pending file chooser completion objects. If the queue is | 1472 // The current and pending file chooser completion objects. If the queue is |
1464 // nonempty, the first item represents the currently running file chooser | 1473 // nonempty, the first item represents the currently running file chooser |
1465 // callback, and the remaining elements are the other file chooser completion | 1474 // callback, and the remaining elements are the other file chooser completion |
1466 // still waiting to be run (in order). | 1475 // still waiting to be run (in order). |
1467 struct PendingFileChooser; | 1476 struct PendingFileChooser; |
1468 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1477 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1577 // use the Observer interface to filter IPC messages and receive frame change | 1586 // use the Observer interface to filter IPC messages and receive frame change |
1578 // notifications. | 1587 // notifications. |
1579 // --------------------------------------------------------------------------- | 1588 // --------------------------------------------------------------------------- |
1580 | 1589 |
1581 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1590 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1582 }; | 1591 }; |
1583 | 1592 |
1584 } // namespace content | 1593 } // namespace content |
1585 | 1594 |
1586 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1595 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |