Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.cc

Issue 2501213002: Drag-and-drop: dragSourceEndedAt, dragSourceSystemDragEnded (Closed)
Patch Set: Rebased. Added check for !GetWebWidget(). Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/interstitial_page_impl.h" 5 #include "content/browser/frame_host/interstitial_page_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 NOTREACHED() << "InterstitialPage does not support showing popup menus."; 877 NOTREACHED() << "InterstitialPage does not support showing popup menus.";
878 } 878 }
879 #endif 879 #endif
880 880
881 void InterstitialPageImpl::InterstitialPageRVHDelegateView::StartDragging( 881 void InterstitialPageImpl::InterstitialPageRVHDelegateView::StartDragging(
882 const DropData& drop_data, 882 const DropData& drop_data,
883 WebDragOperationsMask allowed_operations, 883 WebDragOperationsMask allowed_operations,
884 const gfx::ImageSkia& image, 884 const gfx::ImageSkia& image,
885 const gfx::Vector2d& image_offset, 885 const gfx::Vector2d& image_offset,
886 const DragEventSourceInfo& event_info) { 886 const DragEventSourceInfo& event_info) {
887 interstitial_page_->render_view_host_->DragSourceSystemDragEnded(); 887 interstitial_page_->render_view_host_->GetWidget()->
888 DragSourceSystemDragEnded();
888 DVLOG(1) << "InterstitialPage does not support dragging yet."; 889 DVLOG(1) << "InterstitialPage does not support dragging yet.";
889 } 890 }
890 891
891 void InterstitialPageImpl::InterstitialPageRVHDelegateView::UpdateDragCursor( 892 void InterstitialPageImpl::InterstitialPageRVHDelegateView::UpdateDragCursor(
892 WebDragOperation) { 893 WebDragOperation) {
893 NOTREACHED() << "InterstitialPage does not support dragging yet."; 894 NOTREACHED() << "InterstitialPage does not support dragging yet.";
894 } 895 }
895 896
896 void InterstitialPageImpl::InterstitialPageRVHDelegateView::GotFocus() { 897 void InterstitialPageImpl::InterstitialPageRVHDelegateView::GotFocus() {
897 WebContents* web_contents = interstitial_page_->web_contents(); 898 WebContents* web_contents = interstitial_page_->web_contents();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) { 951 void InterstitialPageImpl::UpdateDeviceScaleFactor(double device_scale_factor) {
951 WebContentsImpl* web_contents_impl = 952 WebContentsImpl* web_contents_impl =
952 static_cast<WebContentsImpl*>(web_contents_); 953 static_cast<WebContentsImpl*>(web_contents_);
953 if (!web_contents_impl) 954 if (!web_contents_impl)
954 return; 955 return;
955 956
956 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor); 957 web_contents_impl->UpdateDeviceScaleFactor(device_scale_factor);
957 } 958 }
958 959
959 } // namespace content 960 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698