| 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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 if (host_) | 565 if (host_) |
| 566 host_->ForwardGestureEvent(event); | 566 host_->ForwardGestureEvent(event); |
| 567 } | 567 } |
| 568 | 568 |
| 569 void RenderWidgetHostViewAndroid::SelectRange(const gfx::Point& start, | 569 void RenderWidgetHostViewAndroid::SelectRange(const gfx::Point& start, |
| 570 const gfx::Point& end) { | 570 const gfx::Point& end) { |
| 571 if (host_) | 571 if (host_) |
| 572 host_->SelectRange(start, end); | 572 host_->SelectRange(start, end); |
| 573 } | 573 } |
| 574 | 574 |
| 575 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::Point& point) { |
| 576 if (host_) |
| 577 host_->MoveCaret(point); |
| 578 } |
| 579 |
| 575 | 580 |
| 576 void RenderWidgetHostViewAndroid::SetCachedBackgroundColor(SkColor color) { | 581 void RenderWidgetHostViewAndroid::SetCachedBackgroundColor(SkColor color) { |
| 577 cached_background_color_ = color; | 582 cached_background_color_ = color; |
| 578 } | 583 } |
| 579 | 584 |
| 580 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const { | 585 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const { |
| 581 return cached_background_color_; | 586 return cached_background_color_; |
| 582 } | 587 } |
| 583 | 588 |
| 584 void RenderWidgetHostViewAndroid::SetCachedPageScaleFactorLimits( | 589 void RenderWidgetHostViewAndroid::SetCachedPageScaleFactorLimits( |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 // RenderWidgetHostView, public: | 645 // RenderWidgetHostView, public: |
| 641 | 646 |
| 642 // static | 647 // static |
| 643 RenderWidgetHostView* | 648 RenderWidgetHostView* |
| 644 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 649 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
| 645 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 650 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
| 646 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 651 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
| 647 } | 652 } |
| 648 | 653 |
| 649 } // namespace content | 654 } // namespace content |
| OLD | NEW |