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

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

Issue 2382733004: Fix drop event location being incorrect at hidpi. (Closed)
Patch Set: Created 4 years, 2 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 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after
2318 } 2318 }
2319 2319
2320 void RenderViewImpl::OnDragTargetDragLeave() { 2320 void RenderViewImpl::OnDragTargetDragLeave() {
2321 webview()->dragTargetDragLeave(); 2321 webview()->dragTargetDragLeave();
2322 } 2322 }
2323 2323
2324 void RenderViewImpl::OnDragTargetDrop(const DropData& drop_data, 2324 void RenderViewImpl::OnDragTargetDrop(const DropData& drop_data,
2325 const gfx::Point& client_point, 2325 const gfx::Point& client_point,
2326 const gfx::Point& screen_point, 2326 const gfx::Point& screen_point,
2327 int key_modifiers) { 2327 int key_modifiers) {
2328 webview()->dragTargetDrop(DropDataToWebDragData(drop_data), client_point, 2328 webview()->dragTargetDrop(DropDataToWebDragData(drop_data),
2329 ConvertWindowPointToViewport(client_point),
2329 screen_point, key_modifiers); 2330 screen_point, key_modifiers);
2330 } 2331 }
2331 2332
2332 void RenderViewImpl::OnDragSourceEnded(const gfx::Point& client_point, 2333 void RenderViewImpl::OnDragSourceEnded(const gfx::Point& client_point,
2333 const gfx::Point& screen_point, 2334 const gfx::Point& screen_point,
2334 WebDragOperation op) { 2335 WebDragOperation op) {
2335 webview()->dragSourceEndedAt( 2336 webview()->dragSourceEndedAt(
2336 ConvertWindowPointToViewport(client_point), screen_point, op); 2337 ConvertWindowPointToViewport(client_point), screen_point, op);
2337 } 2338 }
2338 2339
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
3046 return render_frame->focused_pepper_plugin(); 3047 return render_frame->focused_pepper_plugin();
3047 } 3048 }
3048 frame = frame->traverseNext(false); 3049 frame = frame->traverseNext(false);
3049 } 3050 }
3050 3051
3051 return nullptr; 3052 return nullptr;
3052 } 3053 }
3053 #endif 3054 #endif
3054 3055
3055 } // namespace content 3056 } // 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