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

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

Issue 14018004: [Android] Refactor NativeView to be able to use it for AutofillDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | Annotate | Revision Log
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 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 return true; 243 return true;
244 } 244 }
245 245
246 bool RenderWidgetHostViewAndroid::HasValidFrame() const { 246 bool RenderWidgetHostViewAndroid::HasValidFrame() const {
247 return texture_id_in_layer_ != 0 && 247 return texture_id_in_layer_ != 0 &&
248 content_view_core_ && 248 content_view_core_ &&
249 !texture_size_in_layer_.IsEmpty(); 249 !texture_size_in_layer_.IsEmpty();
250 } 250 }
251 251
252 gfx::NativeView RenderWidgetHostViewAndroid::GetNativeView() const { 252 gfx::NativeView RenderWidgetHostViewAndroid::GetNativeView() const {
253 return content_view_core_; 253 return content_view_core_->GetViewAndroid();
254 } 254 }
255 255
256 gfx::NativeViewId RenderWidgetHostViewAndroid::GetNativeViewId() const { 256 gfx::NativeViewId RenderWidgetHostViewAndroid::GetNativeViewId() const {
257 return reinterpret_cast<gfx::NativeViewId>( 257 return reinterpret_cast<gfx::NativeViewId>(
258 const_cast<RenderWidgetHostViewAndroid*>(this)); 258 const_cast<RenderWidgetHostViewAndroid*>(this));
259 } 259 }
260 260
261 gfx::NativeViewAccessible 261 gfx::NativeViewAccessible
262 RenderWidgetHostViewAndroid::GetNativeViewAccessible() { 262 RenderWidgetHostViewAndroid::GetNativeViewAccessible() {
263 NOTIMPLEMENTED(); 263 NOTIMPLEMENTED();
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 // RenderWidgetHostView, public: 836 // RenderWidgetHostView, public:
837 837
838 // static 838 // static
839 RenderWidgetHostView* 839 RenderWidgetHostView*
840 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 840 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
841 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 841 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
842 return new RenderWidgetHostViewAndroid(rwhi, NULL); 842 return new RenderWidgetHostViewAndroid(rwhi, NULL);
843 } 843 }
844 844
845 } // namespace content 845 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/web_contents/web_contents_view_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698