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

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

Issue 2411793008: Adds BeginFrameControl via DevTools.
Patch Set: BFC prototype v2 with allow_latency_opts and waiting for BFOs. Created 4 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
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_view_guest.h" 5 #include "content/browser/web_contents/web_contents_view_guest.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/browser/browser_plugin/browser_plugin_embedder.h" 10 #include "content/browser/browser_plugin/browser_plugin_embedder.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 166
167 void WebContentsViewGuest::RenderViewSwappedIn(RenderViewHost* host) { 167 void WebContentsViewGuest::RenderViewSwappedIn(RenderViewHost* host) {
168 platform_view_->RenderViewSwappedIn(host); 168 platform_view_->RenderViewSwappedIn(host);
169 } 169 }
170 170
171 void WebContentsViewGuest::SetOverscrollControllerEnabled(bool enabled) { 171 void WebContentsViewGuest::SetOverscrollControllerEnabled(bool enabled) {
172 // This should never override the setting of the embedder view. 172 // This should never override the setting of the embedder view.
173 } 173 }
174 174
175 ui::Compositor* WebContentsViewGuest::GetCompositor() const {
176 return platform_view_->GetCompositor();
177 }
178
175 #if defined(OS_MACOSX) 179 #if defined(OS_MACOSX)
176 bool WebContentsViewGuest::IsEventTracking() const { 180 bool WebContentsViewGuest::IsEventTracking() const {
177 return false; 181 return false;
178 } 182 }
179 183
180 void WebContentsViewGuest::CloseTabAfterEventTracking() { 184 void WebContentsViewGuest::CloseTabAfterEventTracking() {
181 } 185 }
182 #endif 186 #endif
183 187
184 WebContents* WebContentsViewGuest::web_contents() { 188 WebContents* WebContentsViewGuest::web_contents() {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 embedder_render_view_host->GetDelegate()->GetDelegateView(); 244 embedder_render_view_host->GetDelegate()->GetDelegateView();
241 if (view) { 245 if (view) {
242 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.StartDrag")); 246 RecordAction(base::UserMetricsAction("BrowserPlugin.Guest.StartDrag"));
243 view->StartDragging(drop_data, ops, image, image_offset, event_info); 247 view->StartDragging(drop_data, ops, image, image_offset, event_info);
244 } else { 248 } else {
245 embedder_web_contents->SystemDragEnded(); 249 embedder_web_contents->SystemDragEnded();
246 } 250 }
247 } 251 }
248 252
249 } // namespace content 253 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_guest.h ('k') | content/browser/web_contents/web_contents_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698