| 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/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 Loading... |
| 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( |
| 1110 content::MouseLockSource lock_source, |
| 1111 content::MouseUnlockSource previous_unlock_source) { |
| 1110 if (delegate_) { | 1112 if (delegate_) { |
| 1111 delegate_->RequestToLockMouse(this, user_gesture); | 1113 delegate_->RequestToLockMouse(this, lock_source, previous_unlock_source); |
| 1112 } else { | 1114 } else { |
| 1113 GotResponseToLockMouseRequest(false); | 1115 GotResponseToLockMouseRequest(false); |
| 1114 } | 1116 } |
| 1115 } | 1117 } |
| 1116 | 1118 |
| 1117 void WebContentsImpl::LostMouseLock() { | 1119 void WebContentsImpl::LostMouseLock() { |
| 1118 if (delegate_) | 1120 if (delegate_) |
| 1119 delegate_->LostMouseLock(); | 1121 delegate_->LostMouseLock(); |
| 1120 } | 1122 } |
| 1121 | 1123 |
| (...skipping 1942 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3064 browser_plugin_host()->embedder_render_process_host(); | 3066 browser_plugin_host()->embedder_render_process_host(); |
| 3065 *embedder_container_id = browser_plugin_host()->instance_id(); | 3067 *embedder_container_id = browser_plugin_host()->instance_id(); |
| 3066 int embedder_process_id = | 3068 int embedder_process_id = |
| 3067 embedder_render_process_host ? embedder_render_process_host->GetID() : -1; | 3069 embedder_render_process_host ? embedder_render_process_host->GetID() : -1; |
| 3068 if (embedder_process_id != -1) { | 3070 if (embedder_process_id != -1) { |
| 3069 *embedder_channel_name = | 3071 *embedder_channel_name = |
| 3070 StringPrintf("%d.r%d", render_view_host->GetProcess()->GetID(), | 3072 StringPrintf("%d.r%d", render_view_host->GetProcess()->GetID(), |
| 3071 embedder_process_id); | 3073 embedder_process_id); |
| 3072 } | 3074 } |
| 3073 } | 3075 } |
| OLD | NEW |