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

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: remove SizeOfVector 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 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 // shouldn't process input events. 1443 // shouldn't process input events.
1444 GetProcess()->SetIgnoreInputEvents(true); 1444 GetProcess()->SetIgnoreInputEvents(true);
1445 StopHangMonitorTimeout(); 1445 StopHangMonitorTimeout();
1446 delegate_->RunBeforeUnloadConfirm(this, message, is_reload, reply_msg); 1446 delegate_->RunBeforeUnloadConfirm(this, message, is_reload, reply_msg);
1447 } 1447 }
1448 1448
1449 void RenderViewHostImpl::OnMsgStartDragging( 1449 void RenderViewHostImpl::OnMsgStartDragging(
1450 const WebDropData& drop_data, 1450 const WebDropData& drop_data,
1451 WebDragOperationsMask drag_operations_mask, 1451 WebDragOperationsMask drag_operations_mask,
1452 const SkBitmap& bitmap, 1452 const SkBitmap& bitmap,
1453 const gfx::Point& bitmap_offset_in_dip) { 1453 const gfx::Vector2d& bitmap_offset_in_dip) {
1454 RenderViewHostDelegateView* view = delegate_->GetDelegateView(); 1454 RenderViewHostDelegateView* view = delegate_->GetDelegateView();
1455 if (!view) 1455 if (!view)
1456 return; 1456 return;
1457 1457
1458 WebDropData filtered_data(drop_data); 1458 WebDropData filtered_data(drop_data);
1459 ChildProcessSecurityPolicyImpl* policy = 1459 ChildProcessSecurityPolicyImpl* policy =
1460 ChildProcessSecurityPolicyImpl::GetInstance(); 1460 ChildProcessSecurityPolicyImpl::GetInstance();
1461 1461
1462 // Allow drag of Javascript URLs to enable bookmarklet drag to bookmark bar. 1462 // Allow drag of Javascript URLs to enable bookmarklet drag to bookmark bar.
1463 if (!filtered_data.url.SchemeIs(chrome::kJavaScriptScheme)) 1463 if (!filtered_data.url.SchemeIs(chrome::kJavaScriptScheme))
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
2015 is_waiting_for_beforeunload_ack_ = false; 2015 is_waiting_for_beforeunload_ack_ = false;
2016 is_waiting_for_unload_ack_ = false; 2016 is_waiting_for_unload_ack_ = false;
2017 has_timed_out_on_unload_ = false; 2017 has_timed_out_on_unload_ = false;
2018 } 2018 }
2019 2019
2020 void RenderViewHostImpl::ClearPowerSaveBlockers() { 2020 void RenderViewHostImpl::ClearPowerSaveBlockers() {
2021 STLDeleteValues(&power_save_blockers_); 2021 STLDeleteValues(&power_save_blockers_);
2022 } 2022 }
2023 2023
2024 } // namespace content 2024 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698