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

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

Issue 1815593002: Remove windowed NPAPI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_test_plugin_windowless
Patch Set: rebase Created 4 years, 9 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_widget_host_view_android.h" 5 #include "content/browser/renderer_host/render_widget_host_view_android.h"
6 6
7 #include <android/bitmap.h> 7 #include <android/bitmap.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/android/build_info.h" 10 #include "base/android/build_info.h"
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 return reinterpret_cast<gfx::NativeViewId>( 461 return reinterpret_cast<gfx::NativeViewId>(
462 const_cast<RenderWidgetHostViewAndroid*>(this)); 462 const_cast<RenderWidgetHostViewAndroid*>(this));
463 } 463 }
464 464
465 gfx::NativeViewAccessible 465 gfx::NativeViewAccessible
466 RenderWidgetHostViewAndroid::GetNativeViewAccessible() { 466 RenderWidgetHostViewAndroid::GetNativeViewAccessible() {
467 NOTIMPLEMENTED(); 467 NOTIMPLEMENTED();
468 return NULL; 468 return NULL;
469 } 469 }
470 470
471 void RenderWidgetHostViewAndroid::MovePluginWindows(
472 const std::vector<WebPluginGeometry>& moves) {
473 // We don't have plugin windows on Android. Do nothing. Note: this is called
474 // from RenderWidgetHost::OnUpdateRect which is itself invoked while
475 // processing the corresponding message from Renderer.
476 }
477
478 void RenderWidgetHostViewAndroid::Focus() { 471 void RenderWidgetHostViewAndroid::Focus() {
479 host_->Focus(); 472 host_->Focus();
480 if (overscroll_controller_) 473 if (overscroll_controller_)
481 overscroll_controller_->Enable(); 474 overscroll_controller_->Enable();
482 if (content_view_core_) { 475 if (content_view_core_) {
483 WebContentsImpl* web_contents_impl = 476 WebContentsImpl* web_contents_impl =
484 static_cast<WebContentsImpl*>(content_view_core_->GetWebContents()); 477 static_cast<WebContentsImpl*>(content_view_core_->GetWebContents());
485 if (web_contents_impl->ShowingInterstitialPage()) 478 if (web_contents_impl->ShowingInterstitialPage())
486 content_view_core_->ForceUpdateImeAdapter(GetNativeImeAdapter()); 479 content_view_core_->ForceUpdateImeAdapter(GetNativeImeAdapter());
487 } 480 }
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
2007 results->orientationAngle = display.RotationAsDegree(); 2000 results->orientationAngle = display.RotationAsDegree();
2008 results->orientationType = 2001 results->orientationType =
2009 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 2002 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
2010 gfx::DeviceDisplayInfo info; 2003 gfx::DeviceDisplayInfo info;
2011 results->depth = info.GetBitsPerPixel(); 2004 results->depth = info.GetBitsPerPixel();
2012 results->depthPerComponent = info.GetBitsPerComponent(); 2005 results->depthPerComponent = info.GetBitsPerComponent();
2013 results->isMonochrome = (results->depthPerComponent == 0); 2006 results->isMonochrome = (results->depthPerComponent == 0);
2014 } 2007 }
2015 2008
2016 } // namespace content 2009 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698