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/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 // There are no cursors on Android. | 400 // There are no cursors on Android. |
401 } | 401 } |
402 | 402 |
403 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { | 403 void RenderWidgetHostViewAndroid::SetIsLoading(bool is_loading) { |
404 // Do nothing. The UI notification is handled through ContentViewClient which | 404 // Do nothing. The UI notification is handled through ContentViewClient which |
405 // is TabContentsDelegate. | 405 // is TabContentsDelegate. |
406 } | 406 } |
407 | 407 |
408 void RenderWidgetHostViewAndroid::TextInputTypeChanged( | 408 void RenderWidgetHostViewAndroid::TextInputTypeChanged( |
409 ui::TextInputType type, | 409 ui::TextInputType type, |
410 bool can_compose_inline, | 410 ui::TextInputMode input_mode, |
411 ui::TextInputMode input_mode) { | 411 bool can_compose_inline) { |
412 // Unused on Android, which uses OnTextInputChanged instead. | 412 // Unused on Android, which uses OnTextInputChanged instead. |
413 } | 413 } |
414 | 414 |
415 int RenderWidgetHostViewAndroid::GetNativeImeAdapter() { | 415 int RenderWidgetHostViewAndroid::GetNativeImeAdapter() { |
416 return reinterpret_cast<int>(&ime_adapter_android_); | 416 return reinterpret_cast<int>(&ime_adapter_android_); |
417 } | 417 } |
418 | 418 |
419 void RenderWidgetHostViewAndroid::OnTextInputStateChanged( | 419 void RenderWidgetHostViewAndroid::OnTextInputStateChanged( |
420 const ViewHostMsg_TextInputState_Params& params) { | 420 const ViewHostMsg_TextInputState_Params& params) { |
421 // If an acknowledgement is required for this event, regardless of how we exit | 421 // If an acknowledgement is required for this event, regardless of how we exit |
(...skipping 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 // RenderWidgetHostView, public: | 1288 // RenderWidgetHostView, public: |
1289 | 1289 |
1290 // static | 1290 // static |
1291 RenderWidgetHostView* | 1291 RenderWidgetHostView* |
1292 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1292 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
1293 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1293 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
1294 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1294 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
1295 } | 1295 } |
1296 | 1296 |
1297 } // namespace content | 1297 } // namespace content |
OLD | NEW |