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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
432 return; | 432 return; |
433 | 433 |
434 content_view_core_->UpdateImeAdapter( | 434 content_view_core_->UpdateImeAdapter( |
435 GetNativeImeAdapter(), | 435 GetNativeImeAdapter(), |
436 static_cast<int>(params.type), | 436 static_cast<int>(params.type), |
437 params.value, params.selection_start, params.selection_end, | 437 params.value, params.selection_start, params.selection_end, |
438 params.composition_start, params.composition_end, | 438 params.composition_start, params.composition_end, |
439 params.show_ime_if_needed, params.require_ack); | 439 params.show_ime_if_needed, params.require_ack); |
440 } | 440 } |
441 | 441 |
442 | |
443 | |
jamesr
2013/11/15 23:02:46
extra newlines
aurimas (slooooooooow)
2013/11/20 00:25:44
Done.
| |
442 void RenderWidgetHostViewAndroid::OnDidChangeBodyBackgroundColor( | 444 void RenderWidgetHostViewAndroid::OnDidChangeBodyBackgroundColor( |
443 SkColor color) { | 445 SkColor color) { |
444 if (cached_background_color_ == color) | 446 if (cached_background_color_ == color) |
445 return; | 447 return; |
446 | 448 |
447 cached_background_color_ = color; | 449 cached_background_color_ = color; |
448 if (content_view_core_) | 450 if (content_view_core_) |
449 content_view_core_->OnBackgroundColorChanged(color); | 451 content_view_core_->OnBackgroundColorChanged(color); |
450 } | 452 } |
451 | 453 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
484 void RenderWidgetHostViewAndroid::OnStartContentIntent( | 486 void RenderWidgetHostViewAndroid::OnStartContentIntent( |
485 const GURL& content_url) { | 487 const GURL& content_url) { |
486 if (content_view_core_) | 488 if (content_view_core_) |
487 content_view_core_->StartContentIntent(content_url); | 489 content_view_core_->StartContentIntent(content_url); |
488 } | 490 } |
489 | 491 |
490 void RenderWidgetHostViewAndroid::ImeCancelComposition() { | 492 void RenderWidgetHostViewAndroid::ImeCancelComposition() { |
491 ime_adapter_android_.CancelComposition(); | 493 ime_adapter_android_.CancelComposition(); |
492 } | 494 } |
493 | 495 |
496 void RenderWidgetHostViewAndroid::FocusedNodeChanged(bool is_editable_node) { | |
497 ime_adapter_android_.FocusedNodeChanged(is_editable_node); | |
498 } | |
499 | |
494 void RenderWidgetHostViewAndroid::DidUpdateBackingStore( | 500 void RenderWidgetHostViewAndroid::DidUpdateBackingStore( |
495 const gfx::Rect& scroll_rect, | 501 const gfx::Rect& scroll_rect, |
496 const gfx::Vector2d& scroll_delta, | 502 const gfx::Vector2d& scroll_delta, |
497 const std::vector<gfx::Rect>& copy_rects, | 503 const std::vector<gfx::Rect>& copy_rects, |
498 const ui::LatencyInfo& latency_info) { | 504 const ui::LatencyInfo& latency_info) { |
499 NOTIMPLEMENTED(); | 505 NOTIMPLEMENTED(); |
500 } | 506 } |
501 | 507 |
502 void RenderWidgetHostViewAndroid::RenderProcessGone( | 508 void RenderWidgetHostViewAndroid::RenderProcessGone( |
503 base::TerminationStatus status, int error_code) { | 509 base::TerminationStatus status, int error_code) { |
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1391 // RenderWidgetHostView, public: | 1397 // RenderWidgetHostView, public: |
1392 | 1398 |
1393 // static | 1399 // static |
1394 RenderWidgetHostView* | 1400 RenderWidgetHostView* |
1395 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1401 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
1396 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1402 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
1397 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1403 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
1398 } | 1404 } |
1399 | 1405 |
1400 } // namespace content | 1406 } // namespace content |
OLD | NEW |