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/browser/frame_host/render_frame_host_impl.h" | 5 #include "content/browser/frame_host/render_frame_host_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 OnAccessibilityChildFrameHitTestResult) | 570 OnAccessibilityChildFrameHitTestResult) |
571 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_SnapshotResponse, | 571 IPC_MESSAGE_HANDLER(AccessibilityHostMsg_SnapshotResponse, |
572 OnAccessibilitySnapshotResponse) | 572 OnAccessibilitySnapshotResponse) |
573 IPC_MESSAGE_HANDLER(FrameHostMsg_ToggleFullscreen, OnToggleFullscreen) | 573 IPC_MESSAGE_HANDLER(FrameHostMsg_ToggleFullscreen, OnToggleFullscreen) |
574 IPC_MESSAGE_HANDLER(FrameHostMsg_DidStartLoading, OnDidStartLoading) | 574 IPC_MESSAGE_HANDLER(FrameHostMsg_DidStartLoading, OnDidStartLoading) |
575 IPC_MESSAGE_HANDLER(FrameHostMsg_DidStopLoading, OnDidStopLoading) | 575 IPC_MESSAGE_HANDLER(FrameHostMsg_DidStopLoading, OnDidStopLoading) |
576 IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeLoadProgress, | 576 IPC_MESSAGE_HANDLER(FrameHostMsg_DidChangeLoadProgress, |
577 OnDidChangeLoadProgress) | 577 OnDidChangeLoadProgress) |
578 IPC_MESSAGE_HANDLER(FrameHostMsg_SerializeAsMHTMLResponse, | 578 IPC_MESSAGE_HANDLER(FrameHostMsg_SerializeAsMHTMLResponse, |
579 OnSerializeAsMHTMLResponse) | 579 OnSerializeAsMHTMLResponse) |
580 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 580 #if defined(USE_EXTERNAL_POPUP_MENU) |
581 IPC_MESSAGE_HANDLER(FrameHostMsg_ShowPopup, OnShowPopup) | 581 IPC_MESSAGE_HANDLER(FrameHostMsg_ShowPopup, OnShowPopup) |
582 IPC_MESSAGE_HANDLER(FrameHostMsg_HidePopup, OnHidePopup) | 582 IPC_MESSAGE_HANDLER(FrameHostMsg_HidePopup, OnHidePopup) |
583 #endif | 583 #endif |
584 IPC_END_MESSAGE_MAP() | 584 IPC_END_MESSAGE_MAP() |
585 | 585 |
586 // No further actions here, since we may have been deleted. | 586 // No further actions here, since we may have been deleted. |
587 return handled; | 587 return handled; |
588 } | 588 } |
589 | 589 |
590 void RenderFrameHostImpl::AccessibilitySetFocus(int object_id) { | 590 void RenderFrameHostImpl::AccessibilitySetFocus(int object_id) { |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1914 } | 1914 } |
1915 | 1915 |
1916 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse( | 1916 void RenderFrameHostImpl::OnSerializeAsMHTMLResponse( |
1917 int job_id, | 1917 int job_id, |
1918 bool success, | 1918 bool success, |
1919 const std::set<std::string>& digests_of_uris_of_serialized_resources) { | 1919 const std::set<std::string>& digests_of_uris_of_serialized_resources) { |
1920 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse( | 1920 MHTMLGenerationManager::GetInstance()->OnSerializeAsMHTMLResponse( |
1921 this, job_id, success, digests_of_uris_of_serialized_resources); | 1921 this, job_id, success, digests_of_uris_of_serialized_resources); |
1922 } | 1922 } |
1923 | 1923 |
1924 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1924 #if defined(USE_EXTERNAL_POPUP_MENU) |
1925 void RenderFrameHostImpl::OnShowPopup( | 1925 void RenderFrameHostImpl::OnShowPopup( |
1926 const FrameHostMsg_ShowPopup_Params& params) { | 1926 const FrameHostMsg_ShowPopup_Params& params) { |
1927 RenderViewHostDelegateView* view = | 1927 RenderViewHostDelegateView* view = |
1928 render_view_host_->delegate_->GetDelegateView(); | 1928 render_view_host_->delegate_->GetDelegateView(); |
1929 if (view) { | 1929 if (view) { |
1930 gfx::Point original_point(params.bounds.x(), params.bounds.y()); | 1930 gfx::Point original_point(params.bounds.x(), params.bounds.y()); |
1931 gfx::Point transformed_point = | 1931 gfx::Point transformed_point = |
1932 static_cast<RenderWidgetHostViewBase*>(GetView()) | 1932 static_cast<RenderWidgetHostViewBase*>(GetView()) |
1933 ->TransformPointToRootCoordSpace(original_point); | 1933 ->TransformPointToRootCoordSpace(original_point); |
1934 gfx::Rect transformed_bounds(transformed_point.x(), transformed_point.y(), | 1934 gfx::Rect transformed_bounds(transformed_point.x(), transformed_point.y(), |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2849 // handler after it's destroyed so it can't run after the RFHI is destroyed. | 2849 // handler after it's destroyed so it can't run after the RFHI is destroyed. |
2850 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( | 2850 web_bluetooth_service_->SetClientConnectionErrorHandler(base::Bind( |
2851 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); | 2851 &RenderFrameHostImpl::DeleteWebBluetoothService, base::Unretained(this))); |
2852 } | 2852 } |
2853 | 2853 |
2854 void RenderFrameHostImpl::DeleteWebBluetoothService() { | 2854 void RenderFrameHostImpl::DeleteWebBluetoothService() { |
2855 web_bluetooth_service_.reset(); | 2855 web_bluetooth_service_.reset(); |
2856 } | 2856 } |
2857 | 2857 |
2858 } // namespace content | 2858 } // namespace content |
OLD | NEW |