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/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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 RenderWidgetHostViewBase::GetDefaultScreenInfo(result); | 640 RenderWidgetHostViewBase::GetDefaultScreenInfo(result); |
641 } | 641 } |
642 | 642 |
643 // TODO(jrg): Find out the implications and answer correctly here, | 643 // TODO(jrg): Find out the implications and answer correctly here, |
644 // as we are returning the WebView and not root window bounds. | 644 // as we are returning the WebView and not root window bounds. |
645 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() { | 645 gfx::Rect RenderWidgetHostViewAndroid::GetBoundsInRootWindow() { |
646 return GetViewBounds(); | 646 return GetViewBounds(); |
647 } | 647 } |
648 | 648 |
649 gfx::GLSurfaceHandle RenderWidgetHostViewAndroid::GetCompositingSurface() { | 649 gfx::GLSurfaceHandle RenderWidgetHostViewAndroid::GetCompositingSurface() { |
650 if (surface_texture_transport_.get()) { | 650 if (surface_texture_transport_) { |
651 return surface_texture_transport_->GetCompositingSurface( | 651 return surface_texture_transport_->GetCompositingSurface( |
652 host_->surface_id()); | 652 host_->surface_id()); |
653 } else { | 653 } else { |
654 return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::TEXTURE_TRANSPORT); | 654 return gfx::GLSurfaceHandle(gfx::kNullPluginWindow, gfx::TEXTURE_TRANSPORT); |
655 } | 655 } |
656 } | 656 } |
657 | 657 |
658 void RenderWidgetHostViewAndroid::ProcessAckedTouchEvent( | 658 void RenderWidgetHostViewAndroid::ProcessAckedTouchEvent( |
659 const WebKit::WebTouchEvent& touch_event, InputEventAckState ack_result) { | 659 const WebKit::WebTouchEvent& touch_event, InputEventAckState ack_result) { |
660 if (content_view_core_) | 660 if (content_view_core_) |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 // RenderWidgetHostView, public: | 798 // RenderWidgetHostView, public: |
799 | 799 |
800 // static | 800 // static |
801 RenderWidgetHostView* | 801 RenderWidgetHostView* |
802 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 802 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
803 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 803 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
804 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 804 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
805 } | 805 } |
806 | 806 |
807 } // namespace content | 807 } // namespace content |
OLD | NEW |