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

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

Issue 10443045: Silent mouse lock after unlock by target (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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
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 1437 matching lines...) Expand 10 before | Expand all | Expand 10 after
1448 1448
1449 void RenderViewHostImpl::NotifyRendererUnresponsive() { 1449 void RenderViewHostImpl::NotifyRendererUnresponsive() {
1450 delegate_->RendererUnresponsive( 1450 delegate_->RendererUnresponsive(
1451 this, is_waiting_for_beforeunload_ack_ || is_waiting_for_unload_ack_); 1451 this, is_waiting_for_beforeunload_ack_ || is_waiting_for_unload_ack_);
1452 } 1452 }
1453 1453
1454 void RenderViewHostImpl::NotifyRendererResponsive() { 1454 void RenderViewHostImpl::NotifyRendererResponsive() {
1455 delegate_->RendererResponsive(this); 1455 delegate_->RendererResponsive(this);
1456 } 1456 }
1457 1457
1458 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture) { 1458 void RenderViewHostImpl::RequestToLockMouse(bool user_gesture,
1459 delegate_->RequestToLockMouse(user_gesture); 1459 bool after_unlocked_by_target) {
1460 delegate_->RequestToLockMouse(user_gesture, after_unlocked_by_target);
1460 } 1461 }
1461 1462
1462 bool RenderViewHostImpl::IsFullscreen() const { 1463 bool RenderViewHostImpl::IsFullscreen() const {
1463 return delegate_->IsFullscreenForCurrentTab(); 1464 return delegate_->IsFullscreenForCurrentTab();
1464 } 1465 }
1465 1466
1466 void RenderViewHostImpl::OnMsgFocus() { 1467 void RenderViewHostImpl::OnMsgFocus() {
1467 // Note: We allow focus and blur from swapped out RenderViewHosts, even when 1468 // Note: We allow focus and blur from swapped out RenderViewHosts, even when
1468 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI). 1469 // the active RenderViewHost is in a different BrowsingInstance (e.g., WebUI).
1469 delegate_->Activate(); 1470 delegate_->Activate();
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 // can cause navigations to be ignored in OnMsgNavigate. 1819 // can cause navigations to be ignored in OnMsgNavigate.
1819 is_waiting_for_beforeunload_ack_ = false; 1820 is_waiting_for_beforeunload_ack_ = false;
1820 is_waiting_for_unload_ack_ = false; 1821 is_waiting_for_unload_ack_ = false;
1821 } 1822 }
1822 1823
1823 void RenderViewHostImpl::ClearPowerSaveBlockers() { 1824 void RenderViewHostImpl::ClearPowerSaveBlockers() {
1824 STLDeleteValues(&power_save_blockers_); 1825 STLDeleteValues(&power_save_blockers_);
1825 } 1826 }
1826 1827
1827 } // namespace content 1828 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698