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

Side by Side Diff: content/browser/web_contents/web_contents_view_android.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_android.h" 5 #include "content/browser/web_contents/web_contents_view_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 231
232 void WebContentsViewAndroid::RenderViewCreated(RenderViewHost* host) { 232 void WebContentsViewAndroid::RenderViewCreated(RenderViewHost* host) {
233 } 233 }
234 234
235 void WebContentsViewAndroid::RenderViewSwappedIn(RenderViewHost* host) { 235 void WebContentsViewAndroid::RenderViewSwappedIn(RenderViewHost* host) {
236 } 236 }
237 237
238 void WebContentsViewAndroid::SetOverscrollControllerEnabled(bool enabled) { 238 void WebContentsViewAndroid::SetOverscrollControllerEnabled(bool enabled) {
239 } 239 }
240 240
241 ui::Compositor* WebContentsViewAndroid::GetCompositor() const {
242 return nullptr;
243 }
244
241 void WebContentsViewAndroid::ShowContextMenu( 245 void WebContentsViewAndroid::ShowContextMenu(
242 RenderFrameHost* render_frame_host, const ContextMenuParams& params) { 246 RenderFrameHost* render_frame_host, const ContextMenuParams& params) {
243 if (delegate_) 247 if (delegate_)
244 delegate_->ShowContextMenu(render_frame_host, params); 248 delegate_->ShowContextMenu(render_frame_host, params);
245 } 249 }
246 250
247 void WebContentsViewAndroid::ShowPopupMenu( 251 void WebContentsViewAndroid::ShowPopupMenu(
248 RenderFrameHost* render_frame_host, 252 RenderFrameHost* render_frame_host,
249 const gfx::Rect& bounds, 253 const gfx::Rect& bounds,
250 int item_height, 254 int item_height,
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 // This is called when we the renderer asks us to take focus back (i.e., it has 368 // This is called when we the renderer asks us to take focus back (i.e., it has
365 // iterated past the last focusable element on the page). 369 // iterated past the last focusable element on the page).
366 void WebContentsViewAndroid::TakeFocus(bool reverse) { 370 void WebContentsViewAndroid::TakeFocus(bool reverse) {
367 if (web_contents_->GetDelegate() && 371 if (web_contents_->GetDelegate() &&
368 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse)) 372 web_contents_->GetDelegate()->TakeFocus(web_contents_, reverse))
369 return; 373 return;
370 web_contents_->GetRenderWidgetHostView()->Focus(); 374 web_contents_->GetRenderWidgetHostView()->Focus();
371 } 375 }
372 376
373 } // namespace content 377 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_android.h ('k') | content/browser/web_contents/web_contents_view_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698