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/build_info.h" | 9 #include "base/android/build_info.h" |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 void RenderWidgetHostViewAndroid::SetNeedsAnimate() { | 1133 void RenderWidgetHostViewAndroid::SetNeedsAnimate() { |
1134 DCHECK(content_view_core_); | 1134 DCHECK(content_view_core_); |
1135 DCHECK(!using_synchronous_compositor_); | 1135 DCHECK(!using_synchronous_compositor_); |
1136 content_view_core_->GetWindowAndroid()->SetNeedsAnimate(); | 1136 content_view_core_->GetWindowAndroid()->SetNeedsAnimate(); |
1137 } | 1137 } |
1138 | 1138 |
1139 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::PointF& position) { | 1139 void RenderWidgetHostViewAndroid::MoveCaret(const gfx::PointF& position) { |
1140 MoveCaret(gfx::Point(position.x(), position.y())); | 1140 MoveCaret(gfx::Point(position.x(), position.y())); |
1141 } | 1141 } |
1142 | 1142 |
| 1143 void RenderWidgetHostViewAndroid::MoveSelectionExtent( |
| 1144 const gfx::PointF& position) { |
| 1145 DCHECK(content_view_core_); |
| 1146 content_view_core_->MoveSelectionExtent(position); |
| 1147 } |
| 1148 |
1143 void RenderWidgetHostViewAndroid::SelectBetweenCoordinates( | 1149 void RenderWidgetHostViewAndroid::SelectBetweenCoordinates( |
1144 const gfx::PointF& start, | 1150 const gfx::PointF& start, |
1145 const gfx::PointF& end) { | 1151 const gfx::PointF& end) { |
1146 DCHECK(content_view_core_); | 1152 DCHECK(content_view_core_); |
1147 content_view_core_->SelectBetweenCoordinates(start, end); | 1153 content_view_core_->SelectBetweenCoordinates(start, end); |
1148 } | 1154 } |
1149 | 1155 |
1150 void RenderWidgetHostViewAndroid::OnSelectionEvent( | 1156 void RenderWidgetHostViewAndroid::OnSelectionEvent( |
1151 SelectionEventType event, | 1157 SelectionEventType event, |
1152 const gfx::PointF& position) { | 1158 const gfx::PointF& position) { |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1772 results->orientationAngle = display.RotationAsDegree(); | 1778 results->orientationAngle = display.RotationAsDegree(); |
1773 results->orientationType = | 1779 results->orientationType = |
1774 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); | 1780 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); |
1775 gfx::DeviceDisplayInfo info; | 1781 gfx::DeviceDisplayInfo info; |
1776 results->depth = info.GetBitsPerPixel(); | 1782 results->depth = info.GetBitsPerPixel(); |
1777 results->depthPerComponent = info.GetBitsPerComponent(); | 1783 results->depthPerComponent = info.GetBitsPerComponent(); |
1778 results->isMonochrome = (results->depthPerComponent == 0); | 1784 results->isMonochrome = (results->depthPerComponent == 0); |
1779 } | 1785 } |
1780 | 1786 |
1781 } // namespace content | 1787 } // namespace content |
OLD | NEW |