OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_frame_impl.h" | 5 #include "content/renderer/render_frame_impl.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 #include "content/public/common/url_constants.h" | 85 #include "content/public/common/url_constants.h" |
86 #include "content/public/common/url_utils.h" | 86 #include "content/public/common/url_utils.h" |
87 #include "content/public/renderer/browser_plugin_delegate.h" | 87 #include "content/public/renderer/browser_plugin_delegate.h" |
88 #include "content/public/renderer/content_renderer_client.h" | 88 #include "content/public/renderer/content_renderer_client.h" |
89 #include "content/public/renderer/context_menu_client.h" | 89 #include "content/public/renderer/context_menu_client.h" |
90 #include "content/public/renderer/document_state.h" | 90 #include "content/public/renderer/document_state.h" |
91 #include "content/public/renderer/navigation_state.h" | 91 #include "content/public/renderer/navigation_state.h" |
92 #include "content/public/renderer/render_frame_observer.h" | 92 #include "content/public/renderer/render_frame_observer.h" |
93 #include "content/public/renderer/renderer_ppapi_host.h" | 93 #include "content/public/renderer/renderer_ppapi_host.h" |
94 #include "content/renderer/accessibility/render_accessibility_impl.h" | 94 #include "content/renderer/accessibility/render_accessibility_impl.h" |
95 #include "content/renderer/bluetooth/web_bluetooth_impl.h" | |
96 #include "content/renderer/browser_plugin/browser_plugin.h" | 95 #include "content/renderer/browser_plugin/browser_plugin.h" |
97 #include "content/renderer/browser_plugin/browser_plugin_manager.h" | 96 #include "content/renderer/browser_plugin/browser_plugin_manager.h" |
98 #include "content/renderer/child_frame_compositing_helper.h" | 97 #include "content/renderer/child_frame_compositing_helper.h" |
99 #include "content/renderer/context_menu_params_builder.h" | 98 #include "content/renderer/context_menu_params_builder.h" |
100 #include "content/renderer/devtools/devtools_agent.h" | 99 #include "content/renderer/devtools/devtools_agent.h" |
101 #include "content/renderer/dom_automation_controller.h" | 100 #include "content/renderer/dom_automation_controller.h" |
102 #include "content/renderer/effective_connection_type_helper.h" | 101 #include "content/renderer/effective_connection_type_helper.h" |
103 #include "content/renderer/external_popup_menu.h" | 102 #include "content/renderer/external_popup_menu.h" |
104 #include "content/renderer/gpu/gpu_benchmarking_extension.h" | 103 #include "content/renderer/gpu/gpu_benchmarking_extension.h" |
105 #include "content/renderer/history_controller.h" | 104 #include "content/renderer/history_controller.h" |
(...skipping 4532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4638 void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme, | 4637 void RenderFrameImpl::unregisterProtocolHandler(const WebString& scheme, |
4639 const WebURL& url) { | 4638 const WebURL& url) { |
4640 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); | 4639 bool user_gesture = WebUserGestureIndicator::isProcessingUserGesture(); |
4641 Send(new FrameHostMsg_UnregisterProtocolHandler( | 4640 Send(new FrameHostMsg_UnregisterProtocolHandler( |
4642 routing_id_, | 4641 routing_id_, |
4643 base::UTF16ToUTF8(base::StringPiece16(scheme)), | 4642 base::UTF16ToUTF8(base::StringPiece16(scheme)), |
4644 url, | 4643 url, |
4645 user_gesture)); | 4644 user_gesture)); |
4646 } | 4645 } |
4647 | 4646 |
4648 blink::WebBluetooth* RenderFrameImpl::bluetooth() { | |
4649 if (!bluetooth_.get()) | |
4650 bluetooth_.reset(new WebBluetoothImpl(GetRemoteInterfaces())); | |
4651 return bluetooth_.get(); | |
4652 } | |
4653 | |
4654 void RenderFrameImpl::didSerializeDataForFrame( | 4647 void RenderFrameImpl::didSerializeDataForFrame( |
4655 const WebCString& data, | 4648 const WebCString& data, |
4656 WebFrameSerializerClient::FrameSerializationStatus status) { | 4649 WebFrameSerializerClient::FrameSerializationStatus status) { |
4657 bool end_of_data = status == WebFrameSerializerClient::CurrentFrameIsFinished; | 4650 bool end_of_data = status == WebFrameSerializerClient::CurrentFrameIsFinished; |
4658 Send(new FrameHostMsg_SerializedHtmlWithLocalLinksResponse( | 4651 Send(new FrameHostMsg_SerializedHtmlWithLocalLinksResponse( |
4659 routing_id_, data, end_of_data)); | 4652 routing_id_, data, end_of_data)); |
4660 } | 4653 } |
4661 | 4654 |
4662 void RenderFrameImpl::AddObserver(RenderFrameObserver* observer) { | 4655 void RenderFrameImpl::AddObserver(RenderFrameObserver* observer) { |
4663 observers_.AddObserver(observer); | 4656 observers_.AddObserver(observer); |
(...skipping 2028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6692 // event target. Potentially a Pepper plugin will receive the event. | 6685 // event target. Potentially a Pepper plugin will receive the event. |
6693 // In order to tell whether a plugin gets the last mouse event and which it | 6686 // In order to tell whether a plugin gets the last mouse event and which it |
6694 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets | 6687 // is, we set |pepper_last_mouse_event_target_| to null here. If a plugin gets |
6695 // the event, it will notify us via DidReceiveMouseEvent() and set itself as | 6688 // the event, it will notify us via DidReceiveMouseEvent() and set itself as |
6696 // |pepper_last_mouse_event_target_|. | 6689 // |pepper_last_mouse_event_target_|. |
6697 pepper_last_mouse_event_target_ = nullptr; | 6690 pepper_last_mouse_event_target_ = nullptr; |
6698 #endif | 6691 #endif |
6699 } | 6692 } |
6700 | 6693 |
6701 } // namespace content | 6694 } // namespace content |
OLD | NEW |