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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 2370523002: Fix drop event location being incorrect at hidpi. (Closed)
Patch Set: Created 4 years, 3 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 9 #include <memory>
10 10
(...skipping 2288 matching lines...) Expand 10 before | Expand all | Expand 10 after
2299 } 2299 }
2300 2300
2301 void RenderViewImpl::OnDragTargetDragLeave() { 2301 void RenderViewImpl::OnDragTargetDragLeave() {
2302 webview()->dragTargetDragLeave(); 2302 webview()->dragTargetDragLeave();
2303 } 2303 }
2304 2304
2305 void RenderViewImpl::OnDragTargetDrop(const DropData& drop_data, 2305 void RenderViewImpl::OnDragTargetDrop(const DropData& drop_data,
2306 const gfx::Point& client_point, 2306 const gfx::Point& client_point,
2307 const gfx::Point& screen_point, 2307 const gfx::Point& screen_point,
2308 int key_modifiers) { 2308 int key_modifiers) {
2309 webview()->dragTargetDrop(DropDataToWebDragData(drop_data), client_point, 2309 webview()->dragTargetDrop(DropDataToWebDragData(drop_data),
2310 ConvertWindowPointToViewport(client_point),
2310 screen_point, key_modifiers); 2311 screen_point, key_modifiers);
2311 } 2312 }
2312 2313
2313 void RenderViewImpl::OnDragSourceEnded(const gfx::Point& client_point, 2314 void RenderViewImpl::OnDragSourceEnded(const gfx::Point& client_point,
2314 const gfx::Point& screen_point, 2315 const gfx::Point& screen_point,
2315 WebDragOperation op) { 2316 WebDragOperation op) {
2316 webview()->dragSourceEndedAt( 2317 webview()->dragSourceEndedAt(
2317 ConvertWindowPointToViewport(client_point), screen_point, op); 2318 ConvertWindowPointToViewport(client_point), screen_point, op);
2318 } 2319 }
2319 2320
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
3022 return render_frame->focused_pepper_plugin(); 3023 return render_frame->focused_pepper_plugin();
3023 } 3024 }
3024 frame = frame->traverseNext(false); 3025 frame = frame->traverseNext(false);
3025 } 3026 }
3026 3027
3027 return nullptr; 3028 return nullptr;
3028 } 3029 }
3029 #endif 3030 #endif
3030 3031
3031 } // namespace content 3032 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698