| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 struct WebPoint; | 88 struct WebPoint; |
| 89 struct WebWindowFeatures; | 89 struct WebWindowFeatures; |
| 90 | 90 |
| 91 #if defined(OS_ANDROID) | 91 #if defined(OS_ANDROID) |
| 92 class WebHitTestResult; | 92 class WebHitTestResult; |
| 93 #endif | 93 #endif |
| 94 } // namespace blink | 94 } // namespace blink |
| 95 | 95 |
| 96 namespace content { | 96 namespace content { |
| 97 | 97 |
| 98 class HistoryController; | |
| 99 class RendererDateTimePicker; | 98 class RendererDateTimePicker; |
| 100 class RenderViewImplTest; | 99 class RenderViewImplTest; |
| 101 class RenderViewObserver; | 100 class RenderViewObserver; |
| 102 class RenderViewTest; | 101 class RenderViewTest; |
| 103 class SpeechRecognitionDispatcher; | 102 class SpeechRecognitionDispatcher; |
| 104 struct FaviconURL; | 103 struct FaviconURL; |
| 105 struct FileChooserParams; | 104 struct FileChooserParams; |
| 106 struct ResizeParams; | 105 struct ResizeParams; |
| 107 | 106 |
| 108 namespace mojom { | 107 namespace mojom { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 } | 159 } |
| 161 | 160 |
| 162 const RendererPreferences& renderer_preferences() const { | 161 const RendererPreferences& renderer_preferences() const { |
| 163 return renderer_preferences_; | 162 return renderer_preferences_; |
| 164 } | 163 } |
| 165 | 164 |
| 166 void set_send_content_state_immediately(bool value) { | 165 void set_send_content_state_immediately(bool value) { |
| 167 send_content_state_immediately_ = value; | 166 send_content_state_immediately_ = value; |
| 168 } | 167 } |
| 169 | 168 |
| 170 HistoryController* history_controller() { | |
| 171 return history_controller_.get(); | |
| 172 } | |
| 173 | |
| 174 // Functions to add and remove observers for this object. | 169 // Functions to add and remove observers for this object. |
| 175 void AddObserver(RenderViewObserver* observer); | 170 void AddObserver(RenderViewObserver* observer); |
| 176 void RemoveObserver(RenderViewObserver* observer); | 171 void RemoveObserver(RenderViewObserver* observer); |
| 177 | 172 |
| 178 // Returns the StatsCollectionObserver associated with this view, or NULL | 173 // Returns the StatsCollectionObserver associated with this view, or NULL |
| 179 // if one wasn't created; | 174 // if one wasn't created; |
| 180 StatsCollectionObserver* GetStatsCollectionObserver() { | 175 StatsCollectionObserver* GetStatsCollectionObserver() { |
| 181 return stats_collection_observer_.get(); | 176 return stats_collection_observer_.get(); |
| 182 } | 177 } |
| 183 | 178 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 213 void AttachWebFrameWidget(blink::WebFrameWidget* frame_widget); | 208 void AttachWebFrameWidget(blink::WebFrameWidget* frame_widget); |
| 214 | 209 |
| 215 void TransferActiveWheelFlingAnimation( | 210 void TransferActiveWheelFlingAnimation( |
| 216 const blink::WebActiveWheelFlingParameters& params); | 211 const blink::WebActiveWheelFlingParameters& params); |
| 217 | 212 |
| 218 // Starts a timer to send an UpdateState message on behalf of |frame|, if the | 213 // Starts a timer to send an UpdateState message on behalf of |frame|, if the |
| 219 // timer isn't already running. This allows multiple state changing events to | 214 // timer isn't already running. This allows multiple state changing events to |
| 220 // be coalesced into one update. | 215 // be coalesced into one update. |
| 221 void StartNavStateSyncTimerIfNecessary(RenderFrameImpl* frame); | 216 void StartNavStateSyncTimerIfNecessary(RenderFrameImpl* frame); |
| 222 | 217 |
| 223 // Synchronously sends the current navigation state to the browser. | |
| 224 void SendUpdateState(); | |
| 225 | |
| 226 // A popup widget opened by this view needs to be shown. | 218 // A popup widget opened by this view needs to be shown. |
| 227 void ShowCreatedPopupWidget(RenderWidget* popup_widget, | 219 void ShowCreatedPopupWidget(RenderWidget* popup_widget, |
| 228 blink::WebNavigationPolicy policy, | 220 blink::WebNavigationPolicy policy, |
| 229 const gfx::Rect& initial_rect); | 221 const gfx::Rect& initial_rect); |
| 230 // A RenderWidgetFullscreen widget opened by this view needs to be shown. | 222 // A RenderWidgetFullscreen widget opened by this view needs to be shown. |
| 231 void ShowCreatedFullscreenWidget(RenderWidget* fullscreen_widget, | 223 void ShowCreatedFullscreenWidget(RenderWidget* fullscreen_widget, |
| 232 blink::WebNavigationPolicy policy, | 224 blink::WebNavigationPolicy policy, |
| 233 const gfx::Rect& initial_rect); | 225 const gfx::Rect& initial_rect); |
| 234 | 226 |
| 235 // Returns the length of the session history of this RenderView. Note that | 227 // Returns the length of the session history of this RenderView. Note that |
| (...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 blink::WebFrameWidget* frame_widget_; | 777 blink::WebFrameWidget* frame_widget_; |
| 786 | 778 |
| 787 // The next group of objects all implement RenderViewObserver, so are deleted | 779 // The next group of objects all implement RenderViewObserver, so are deleted |
| 788 // along with the RenderView automatically. This is why we just store | 780 // along with the RenderView automatically. This is why we just store |
| 789 // weak references. | 781 // weak references. |
| 790 | 782 |
| 791 // The speech recognition dispatcher attached to this view, lazily | 783 // The speech recognition dispatcher attached to this view, lazily |
| 792 // initialized. | 784 // initialized. |
| 793 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; | 785 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; |
| 794 | 786 |
| 795 std::unique_ptr<HistoryController> history_controller_; | |
| 796 | |
| 797 #if defined(OS_ANDROID) | 787 #if defined(OS_ANDROID) |
| 798 // Android Specific --------------------------------------------------------- | 788 // Android Specific --------------------------------------------------------- |
| 799 | 789 |
| 800 // Expected id of the next content intent launched. Used to prevent scheduled | 790 // Expected id of the next content intent launched. Used to prevent scheduled |
| 801 // intents to be launched if aborted. | 791 // intents to be launched if aborted. |
| 802 size_t expected_content_intent_id_; | 792 size_t expected_content_intent_id_; |
| 803 | 793 |
| 804 // List of click-based content detectors. | 794 // List of click-based content detectors. |
| 805 std::vector<std::unique_ptr<ContentDetector>> content_detectors_; | 795 std::vector<std::unique_ptr<ContentDetector>> content_detectors_; |
| 806 | 796 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 // use the Observer interface to filter IPC messages and receive frame change | 833 // use the Observer interface to filter IPC messages and receive frame change |
| 844 // notifications. | 834 // notifications. |
| 845 // --------------------------------------------------------------------------- | 835 // --------------------------------------------------------------------------- |
| 846 | 836 |
| 847 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 837 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 848 }; | 838 }; |
| 849 | 839 |
| 850 } // namespace content | 840 } // namespace content |
| 851 | 841 |
| 852 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 842 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |