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