| 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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 const WebKit::WebString& title); | 494 const WebKit::WebString& title); |
| 492 virtual WebKit::WebPageVisibilityState visibilityState() const; | 495 virtual WebKit::WebPageVisibilityState visibilityState() const; |
| 493 virtual WebKit::WebUserMediaClient* userMediaClient(); | 496 virtual WebKit::WebUserMediaClient* userMediaClient(); |
| 494 virtual void draggableRegionsChanged(); | 497 virtual void draggableRegionsChanged(); |
| 495 | 498 |
| 496 #if defined(OS_ANDROID) | 499 #if defined(OS_ANDROID) |
| 497 virtual void scheduleContentIntent(const WebKit::WebURL& intent); | 500 virtual void scheduleContentIntent(const WebKit::WebURL& intent); |
| 498 virtual void cancelScheduledContentIntents(); | 501 virtual void cancelScheduledContentIntents(); |
| 499 virtual WebKit::WebContentDetectionResult detectContentAround( | 502 virtual WebKit::WebContentDetectionResult detectContentAround( |
| 500 const WebKit::WebHitTestResult& touch_hit); | 503 const WebKit::WebHitTestResult& touch_hit); |
| 504 |
| 505 // Only used on Android since all other platforms implement |
| 506 // date and time input fields using MULTIPLE_FIELDS_UI |
| 507 virtual bool openDateTimeChooser(const WebKit::WebDateTimeChooserParams&, |
| 508 WebKit::WebDateTimeChooserCompletion*); |
| 501 #endif | 509 #endif |
| 502 | 510 |
| 503 // WebKit::WebFrameClient implementation ------------------------------------- | 511 // WebKit::WebFrameClient implementation ------------------------------------- |
| 504 | 512 |
| 505 virtual WebKit::WebPlugin* createPlugin( | 513 virtual WebKit::WebPlugin* createPlugin( |
| 506 WebKit::WebFrame* frame, | 514 WebKit::WebFrame* frame, |
| 507 const WebKit::WebPluginParams& params); | 515 const WebKit::WebPluginParams& params); |
| 508 virtual WebKit::WebSharedWorker* createSharedWorker( | 516 virtual WebKit::WebSharedWorker* createSharedWorker( |
| 509 WebKit::WebFrame* frame, const WebKit::WebURL& url, | 517 WebKit::WebFrame* frame, const WebKit::WebURL& url, |
| 510 const WebKit::WebString& name, unsigned long long documentId); | 518 const WebKit::WebString& name, unsigned long long documentId); |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 819 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 812 DontIgnoreBackAfterNavEntryLimit); | 820 DontIgnoreBackAfterNavEntryLimit); |
| 813 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); | 821 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, ImeComposition); |
| 814 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); | 822 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, InsertCharacters); |
| 815 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); | 823 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, JSBlockSentAfterPageLoad); |
| 816 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); | 824 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, LastCommittedUpdateState); |
| 817 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); | 825 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnExtendSelectionAndDelete); |
| 818 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); | 826 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnHandleKeyboardEvent); |
| 819 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged); | 827 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnImeStateChanged); |
| 820 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); | 828 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavStateChanged); |
| 821 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnReplaceAll); | |
| 822 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); | 829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnSetTextDirection); |
| 823 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); | 830 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnUpdateWebPreferences); |
| 824 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); | 831 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, SendSwapOutACK); |
| 825 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 832 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 826 SetEditableSelectionAndComposition); | 833 SetEditableSelectionAndComposition); |
| 827 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); | 834 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, StaleNavigationsIgnored); |
| 828 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); | 835 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, UpdateTargetURLWithInvalidURL); |
| 829 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, | 836 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, |
| 830 GetCompositionCharacterBoundsTest); | 837 GetCompositionCharacterBoundsTest); |
| 831 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost); | 838 FRIEND_TEST_ALL_PREFIXES(RenderViewImplTest, OnNavigationHttpPost); |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 const WebKit::WebPluginAction& action); | 960 const WebKit::WebPluginAction& action); |
| 954 void OnMoveOrResizeStarted(); | 961 void OnMoveOrResizeStarted(); |
| 955 void OnNavigate(const ViewMsg_Navigate_Params& params); | 962 void OnNavigate(const ViewMsg_Navigate_Params& params); |
| 956 void OnPaste(); | 963 void OnPaste(); |
| 957 void OnPasteAndMatchStyle(); | 964 void OnPasteAndMatchStyle(); |
| 958 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); | 965 void OnPostMessageEvent(const ViewMsg_PostMessage_Params& params); |
| 959 void OnRedo(); | 966 void OnRedo(); |
| 960 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); | 967 void OnReleaseDisambiguationPopupDIB(TransportDIB::Handle dib_handle); |
| 961 void OnReloadFrame(); | 968 void OnReloadFrame(); |
| 962 void OnReplace(const string16& text); | 969 void OnReplace(const string16& text); |
| 963 void OnReplaceAll(const string16& text); | |
| 964 void OnResetPageEncodingToDefault(); | 970 void OnResetPageEncodingToDefault(); |
| 965 void OnScriptEvalRequest(const string16& frame_xpath, | 971 void OnScriptEvalRequest(const string16& frame_xpath, |
| 966 const string16& jscript, | 972 const string16& jscript, |
| 967 int id, | 973 int id, |
| 968 bool notify_result); | 974 bool notify_result); |
| 969 void OnSelectAll(); | 975 void OnSelectAll(); |
| 970 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); | 976 void OnSelectRange(const gfx::Point& start, const gfx::Point& end); |
| 971 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 977 void OnSetAccessibilityMode(AccessibilityMode new_mode); |
| 972 void OnSetActive(bool active); | 978 void OnSetActive(bool active); |
| 973 void OnSetAltErrorPageURL(const GURL& gurl); | 979 void OnSetAltErrorPageURL(const GURL& gurl); |
| (...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1438 // created in the renderer process. | 1444 // created in the renderer process. |
| 1439 scoped_ptr<webkit_media::MediaPlayerBridgeManagerImpl> media_bridge_manager_; | 1445 scoped_ptr<webkit_media::MediaPlayerBridgeManagerImpl> media_bridge_manager_; |
| 1440 | 1446 |
| 1441 // Holds the message used to return find results to the browser during | 1447 // Holds the message used to return find results to the browser during |
| 1442 // synchronous find-in-page requests. Only non-null during these requests. | 1448 // synchronous find-in-page requests. Only non-null during these requests. |
| 1443 scoped_ptr<IPC::Message> synchronous_find_reply_message_; | 1449 scoped_ptr<IPC::Message> synchronous_find_reply_message_; |
| 1444 | 1450 |
| 1445 // The active find-in-page match ordinal during synchronous requests. | 1451 // The active find-in-page match ordinal during synchronous requests. |
| 1446 // Needed to be remembered across WebKit callbacks. | 1452 // Needed to be remembered across WebKit callbacks. |
| 1447 int synchronous_find_active_match_ordinal_; | 1453 int synchronous_find_active_match_ordinal_; |
| 1454 |
| 1455 // A date/time picker object for date and time related input elements. |
| 1456 scoped_ptr<RendererDateTimePicker> date_time_picker_client_; |
| 1448 #endif | 1457 #endif |
| 1449 | 1458 |
| 1450 // Misc ---------------------------------------------------------------------- | 1459 // Misc ---------------------------------------------------------------------- |
| 1451 | 1460 |
| 1452 // The current and pending file chooser completion objects. If the queue is | 1461 // The current and pending file chooser completion objects. If the queue is |
| 1453 // nonempty, the first item represents the currently running file chooser | 1462 // nonempty, the first item represents the currently running file chooser |
| 1454 // callback, and the remaining elements are the other file chooser completion | 1463 // callback, and the remaining elements are the other file chooser completion |
| 1455 // still waiting to be run (in order). | 1464 // still waiting to be run (in order). |
| 1456 struct PendingFileChooser; | 1465 struct PendingFileChooser; |
| 1457 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; | 1466 std::deque< linked_ptr<PendingFileChooser> > file_chooser_completions_; |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1560 // use the Observer interface to filter IPC messages and receive frame change | 1569 // use the Observer interface to filter IPC messages and receive frame change |
| 1561 // notifications. | 1570 // notifications. |
| 1562 // --------------------------------------------------------------------------- | 1571 // --------------------------------------------------------------------------- |
| 1563 | 1572 |
| 1564 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1573 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1565 }; | 1574 }; |
| 1566 | 1575 |
| 1567 } // namespace content | 1576 } // namespace content |
| 1568 | 1577 |
| 1569 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1578 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |