| 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/android/sys_utils.h" | 9 #include "base/android/sys_utils.h" |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 const_cast<RenderWidgetHostViewAndroid*>(this)); | 335 const_cast<RenderWidgetHostViewAndroid*>(this)); |
| 336 } | 336 } |
| 337 | 337 |
| 338 gfx::NativeViewAccessible | 338 gfx::NativeViewAccessible |
| 339 RenderWidgetHostViewAndroid::GetNativeViewAccessible() { | 339 RenderWidgetHostViewAndroid::GetNativeViewAccessible() { |
| 340 NOTIMPLEMENTED(); | 340 NOTIMPLEMENTED(); |
| 341 return NULL; | 341 return NULL; |
| 342 } | 342 } |
| 343 | 343 |
| 344 void RenderWidgetHostViewAndroid::MovePluginWindows( | 344 void RenderWidgetHostViewAndroid::MovePluginWindows( |
| 345 const gfx::Vector2d& scroll_offset, | |
| 346 const std::vector<WebPluginGeometry>& moves) { | 345 const std::vector<WebPluginGeometry>& moves) { |
| 347 // We don't have plugin windows on Android. Do nothing. Note: this is called | 346 // We don't have plugin windows on Android. Do nothing. Note: this is called |
| 348 // from RenderWidgetHost::OnUpdateRect which is itself invoked while | 347 // from RenderWidgetHost::OnUpdateRect which is itself invoked while |
| 349 // processing the corresponding message from Renderer. | 348 // processing the corresponding message from Renderer. |
| 350 } | 349 } |
| 351 | 350 |
| 352 void RenderWidgetHostViewAndroid::Focus() { | 351 void RenderWidgetHostViewAndroid::Focus() { |
| 353 host_->Focus(); | 352 host_->Focus(); |
| 354 host_->SetInputMethodActive(true); | 353 host_->SetInputMethodActive(true); |
| 355 if (overscroll_effect_enabled_) | 354 if (overscroll_effect_enabled_) |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 // RenderWidgetHostView, public: | 1501 // RenderWidgetHostView, public: |
| 1503 | 1502 |
| 1504 // static | 1503 // static |
| 1505 RenderWidgetHostView* | 1504 RenderWidgetHostView* |
| 1506 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1505 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
| 1507 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1506 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
| 1508 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1507 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
| 1509 } | 1508 } |
| 1510 | 1509 |
| 1511 } // namespace content | 1510 } // namespace content |
| OLD | NEW |