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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 10443045: Silent mouse lock after unlock by target (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Changed back to booleans Created 8 years, 6 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/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 1099
1100 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) { 1100 void WebContentsImpl::ToggleFullscreenMode(bool enter_fullscreen) {
1101 if (delegate_) 1101 if (delegate_)
1102 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen); 1102 delegate_->ToggleFullscreenModeForTab(this, enter_fullscreen);
1103 } 1103 }
1104 1104
1105 bool WebContentsImpl::IsFullscreenForCurrentTab() const { 1105 bool WebContentsImpl::IsFullscreenForCurrentTab() const {
1106 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false; 1106 return delegate_ ? delegate_->IsFullscreenForTabOrPending(this) : false;
1107 } 1107 }
1108 1108
1109 void WebContentsImpl::RequestToLockMouse(bool user_gesture) { 1109 void WebContentsImpl::RequestToLockMouse(bool user_gesture,
1110 bool last_unlocked_by_target) {
1110 if (delegate_) { 1111 if (delegate_) {
1111 delegate_->RequestToLockMouse(this, user_gesture); 1112 delegate_->RequestToLockMouse(this, user_gesture, last_unlocked_by_target);
1112 } else { 1113 } else {
1113 GotResponseToLockMouseRequest(false); 1114 GotResponseToLockMouseRequest(false);
1114 } 1115 }
1115 } 1116 }
1116 1117
1117 void WebContentsImpl::LostMouseLock() { 1118 void WebContentsImpl::LostMouseLock() {
1118 if (delegate_) 1119 if (delegate_)
1119 delegate_->LostMouseLock(); 1120 delegate_->LostMouseLock();
1120 } 1121 }
1121 1122
(...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after
3064 browser_plugin_host()->embedder_render_process_host(); 3065 browser_plugin_host()->embedder_render_process_host();
3065 *embedder_container_id = browser_plugin_host()->instance_id(); 3066 *embedder_container_id = browser_plugin_host()->instance_id();
3066 int embedder_process_id = 3067 int embedder_process_id =
3067 embedder_render_process_host ? embedder_render_process_host->GetID() : -1; 3068 embedder_render_process_host ? embedder_render_process_host->GetID() : -1;
3068 if (embedder_process_id != -1) { 3069 if (embedder_process_id != -1) {
3069 *embedder_channel_name = 3070 *embedder_channel_name =
3070 StringPrintf("%d.r%d", render_view_host->GetProcess()->GetID(), 3071 StringPrintf("%d.r%d", render_view_host->GetProcess()->GetID(),
3071 embedder_process_id); 3072 embedder_process_id);
3072 } 3073 }
3073 } 3074 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698