| 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 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" | 
| 6 | 6 | 
| 7 #include <algorithm> | 7 #include <algorithm> | 
| 8 #include <cmath> | 8 #include <cmath> | 
| 9 #include <string> | 9 #include <string> | 
| 10 #include <vector> | 10 #include <vector> | 
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 52 #include "content/public/common/url_constants.h" | 52 #include "content/public/common/url_constants.h" | 
| 53 #include "content/public/renderer/content_renderer_client.h" | 53 #include "content/public/renderer/content_renderer_client.h" | 
| 54 #include "content/public/renderer/document_state.h" | 54 #include "content/public/renderer/document_state.h" | 
| 55 #include "content/public/renderer/navigation_state.h" | 55 #include "content/public/renderer/navigation_state.h" | 
| 56 #include "content/public/renderer/render_view_observer.h" | 56 #include "content/public/renderer/render_view_observer.h" | 
| 57 #include "content/public/renderer/render_view_visitor.h" | 57 #include "content/public/renderer/render_view_visitor.h" | 
| 58 #include "content/renderer/browser_plugin/old/old_browser_plugin.h" | 58 #include "content/renderer/browser_plugin/old/old_browser_plugin.h" | 
| 59 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h" | 59 #include "content/renderer/browser_plugin/old/browser_plugin_channel_manager.h" | 
| 60 #include "content/renderer/browser_plugin/old/browser_plugin_constants.h" | 60 #include "content/renderer/browser_plugin/old/browser_plugin_constants.h" | 
| 61 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h" | 61 #include "content/renderer/browser_plugin/old/guest_to_embedder_channel.h" | 
|  | 62 #include "content/renderer/device_motion_dispatcher.h" | 
| 62 #include "content/renderer/device_orientation_dispatcher.h" | 63 #include "content/renderer/device_orientation_dispatcher.h" | 
| 63 #include "content/renderer/devtools_agent.h" | 64 #include "content/renderer/devtools_agent.h" | 
| 64 #include "content/renderer/dom_automation_controller.h" | 65 #include "content/renderer/dom_automation_controller.h" | 
| 65 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" | 66 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" | 
| 66 #include "content/renderer/external_popup_menu.h" | 67 #include "content/renderer/external_popup_menu.h" | 
| 67 #include "content/renderer/geolocation_dispatcher.h" | 68 #include "content/renderer/geolocation_dispatcher.h" | 
| 68 #include "content/renderer/gpu/compositor_thread.h" | 69 #include "content/renderer/gpu/compositor_thread.h" | 
| 69 #include "content/renderer/idle_user_detector.h" | 70 #include "content/renderer/idle_user_detector.h" | 
| 70 #include "content/renderer/input_tag_speech_dispatcher.h" | 71 #include "content/renderer/input_tag_speech_dispatcher.h" | 
| 71 #include "content/renderer/java/java_bridge_dispatcher.h" | 72 #include "content/renderer/java/java_bridge_dispatcher.h" | 
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 529       target_url_status_(TARGET_NONE), | 530       target_url_status_(TARGET_NONE), | 
| 530       selection_text_offset_(0), | 531       selection_text_offset_(0), | 
| 531       cached_is_main_frame_pinned_to_left_(false), | 532       cached_is_main_frame_pinned_to_left_(false), | 
| 532       cached_is_main_frame_pinned_to_right_(false), | 533       cached_is_main_frame_pinned_to_right_(false), | 
| 533       cached_has_main_frame_horizontal_scrollbar_(false), | 534       cached_has_main_frame_horizontal_scrollbar_(false), | 
| 534       cached_has_main_frame_vertical_scrollbar_(false), | 535       cached_has_main_frame_vertical_scrollbar_(false), | 
| 535       ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), | 536       ALLOW_THIS_IN_INITIALIZER_LIST(cookie_jar_(this)), | 
| 536       geolocation_dispatcher_(NULL), | 537       geolocation_dispatcher_(NULL), | 
| 537       input_tag_speech_dispatcher_(NULL), | 538       input_tag_speech_dispatcher_(NULL), | 
| 538       speech_recognition_dispatcher_(NULL), | 539       speech_recognition_dispatcher_(NULL), | 
|  | 540       device_motion_dispatcher_(NULL), | 
| 539       device_orientation_dispatcher_(NULL), | 541       device_orientation_dispatcher_(NULL), | 
| 540       media_stream_dispatcher_(NULL), | 542       media_stream_dispatcher_(NULL), | 
| 541       media_stream_impl_(NULL), | 543       media_stream_impl_(NULL), | 
| 542       p2p_socket_dispatcher_(NULL), | 544       p2p_socket_dispatcher_(NULL), | 
| 543       devtools_agent_(NULL), | 545       devtools_agent_(NULL), | 
| 544       accessibility_mode_(AccessibilityModeOff), | 546       accessibility_mode_(AccessibilityModeOff), | 
| 545       renderer_accessibility_(NULL), | 547       renderer_accessibility_(NULL), | 
| 546       java_bridge_dispatcher_(NULL), | 548       java_bridge_dispatcher_(NULL), | 
| 547       mouse_lock_dispatcher_(NULL), | 549       mouse_lock_dispatcher_(NULL), | 
| 548       session_storage_namespace_id_(session_storage_namespace_id), | 550       session_storage_namespace_id_(session_storage_namespace_id), | 
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 746       session_storage_namespace_id, | 748       session_storage_namespace_id, | 
| 747       frame_name, | 749       frame_name, | 
| 748       is_renderer_created, | 750       is_renderer_created, | 
| 749       swapped_out, | 751       swapped_out, | 
| 750       next_page_id, | 752       next_page_id, | 
| 751       screen_info, | 753       screen_info, | 
| 752       guest_to_embedder_channel, | 754       guest_to_embedder_channel, | 
| 753       accessibility_mode); | 755       accessibility_mode); | 
| 754 } | 756 } | 
| 755 | 757 | 
|  | 758 WebKit::WebDeviceMotionDetector* RenderViewImpl::GetDeviceMotionDispatcher() { | 
|  | 759   if (!device_motion_dispatcher_) | 
|  | 760     device_motion_dispatcher_ = new DeviceMotionDispatcher(this); | 
|  | 761   return device_motion_dispatcher_; | 
|  | 762 } | 
|  | 763 | 
| 756 WebPeerConnection00Handler* RenderViewImpl::CreatePeerConnectionHandlerJsep( | 764 WebPeerConnection00Handler* RenderViewImpl::CreatePeerConnectionHandlerJsep( | 
| 757     WebPeerConnection00HandlerClient* client) { | 765     WebPeerConnection00HandlerClient* client) { | 
| 758   EnsureMediaStreamImpl(); | 766   EnsureMediaStreamImpl(); | 
| 759   if (!media_stream_impl_) | 767   if (!media_stream_impl_) | 
| 760     return NULL; | 768     return NULL; | 
| 761   return media_stream_impl_->CreatePeerConnectionHandlerJsep(client); | 769   return media_stream_impl_->CreatePeerConnectionHandlerJsep(client); | 
| 762 } | 770 } | 
| 763 | 771 | 
| 764 void RenderViewImpl::AddObserver(RenderViewObserver* observer) { | 772 void RenderViewImpl::AddObserver(RenderViewObserver* observer) { | 
| 765   observers_.AddObserver(observer); | 773   observers_.AddObserver(observer); | 
| (...skipping 5008 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 5774 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5782 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 
| 5775   return !!RenderThreadImpl::current()->compositor_thread(); | 5783   return !!RenderThreadImpl::current()->compositor_thread(); | 
| 5776 } | 5784 } | 
| 5777 | 5785 | 
| 5778 void RenderViewImpl::OnJavaBridgeInit() { | 5786 void RenderViewImpl::OnJavaBridgeInit() { | 
| 5779   DCHECK(!java_bridge_dispatcher_); | 5787   DCHECK(!java_bridge_dispatcher_); | 
| 5780 #if defined(ENABLE_JAVA_BRIDGE) | 5788 #if defined(ENABLE_JAVA_BRIDGE) | 
| 5781   java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5789   java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 
| 5782 #endif | 5790 #endif | 
| 5783 } | 5791 } | 
| OLD | NEW | 
|---|