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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: RenderText fixup Created 8 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 | Annotate | Revision Log
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/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 // shouldn't process input events. 1451 // shouldn't process input events.
1452 GetProcess()->SetIgnoreInputEvents(true); 1452 GetProcess()->SetIgnoreInputEvents(true);
1453 StopHangMonitorTimeout(); 1453 StopHangMonitorTimeout();
1454 delegate_->RunBeforeUnloadConfirm(this, message, is_reload, reply_msg); 1454 delegate_->RunBeforeUnloadConfirm(this, message, is_reload, reply_msg);
1455 } 1455 }
1456 1456
1457 void RenderViewHostImpl::OnMsgStartDragging( 1457 void RenderViewHostImpl::OnMsgStartDragging(
1458 const WebDropData& drop_data, 1458 const WebDropData& drop_data,
1459 WebDragOperationsMask drag_operations_mask, 1459 WebDragOperationsMask drag_operations_mask,
1460 const SkBitmap& bitmap, 1460 const SkBitmap& bitmap,
1461 const gfx::Point& bitmap_offset_in_dip) { 1461 const gfx::Vector2d& bitmap_offset_in_dip) {
1462 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); 1462 RenderViewHostDelegateView* view = delegate_->GetDelegateView();
1463 if (!view) 1463 if (!view)
1464 return; 1464 return;
1465 1465
1466 WebDropData filtered_data(drop_data); 1466 WebDropData filtered_data(drop_data);
1467 RenderProcessHost* process = GetProcess(); 1467 RenderProcessHost* process = GetProcess();
1468 ChildProcessSecurityPolicyImpl* policy = 1468 ChildProcessSecurityPolicyImpl* policy =
1469 ChildProcessSecurityPolicyImpl::GetInstance(); 1469 ChildProcessSecurityPolicyImpl::GetInstance();
1470 1470
1471 // Allow drag of Javascript URLs to enable bookmarklet drag to bookmark bar. 1471 // Allow drag of Javascript URLs to enable bookmarklet drag to bookmark bar.
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
2029 is_waiting_for_beforeunload_ack_ = false; 2029 is_waiting_for_beforeunload_ack_ = false;
2030 is_waiting_for_unload_ack_ = false; 2030 is_waiting_for_unload_ack_ = false;
2031 has_timed_out_on_unload_ = false; 2031 has_timed_out_on_unload_ = false;
2032 } 2032 }
2033 2033
2034 void RenderViewHostImpl::ClearPowerSaveBlockers() { 2034 void RenderViewHostImpl::ClearPowerSaveBlockers() {
2035 STLDeleteValues(&power_save_blockers_); 2035 STLDeleteValues(&power_save_blockers_);
2036 } 2036 }
2037 2037
2038 } // namespace content 2038 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698