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