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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 content_view_core_->OnSelectionChanged(utf8_selection); | 633 content_view_core_->OnSelectionChanged(utf8_selection); |
634 } | 634 } |
635 | 635 |
636 void RenderWidgetHostViewAndroid::SelectionBoundsChanged( | 636 void RenderWidgetHostViewAndroid::SelectionBoundsChanged( |
637 const ViewHostMsg_SelectionBounds_Params& params) { | 637 const ViewHostMsg_SelectionBounds_Params& params) { |
638 if (content_view_core_) { | 638 if (content_view_core_) { |
639 content_view_core_->OnSelectionBoundsChanged(params); | 639 content_view_core_->OnSelectionBoundsChanged(params); |
640 } | 640 } |
641 } | 641 } |
642 | 642 |
643 void RenderWidgetHostViewAndroid::SelectionRootBoundsChanged( | |
644 const gfx::Rect& bounds) { | |
645 } | |
646 | |
647 void RenderWidgetHostViewAndroid::ScrollOffsetChanged() { | 643 void RenderWidgetHostViewAndroid::ScrollOffsetChanged() { |
648 } | 644 } |
649 | 645 |
650 void RenderWidgetHostViewAndroid::SetBackgroundOpaque(bool opaque) { | 646 void RenderWidgetHostViewAndroid::SetBackgroundOpaque(bool opaque) { |
651 RenderWidgetHostViewBase::SetBackgroundOpaque(opaque); | 647 RenderWidgetHostViewBase::SetBackgroundOpaque(opaque); |
652 host_->SetBackgroundOpaque(opaque); | 648 host_->SetBackgroundOpaque(opaque); |
653 } | 649 } |
654 | 650 |
655 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( | 651 void RenderWidgetHostViewAndroid::CopyFromCompositingSurface( |
656 const gfx::Rect& src_subrect, | 652 const gfx::Rect& src_subrect, |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1455 results->availableRect = display.work_area(); | 1451 results->availableRect = display.work_area(); |
1456 results->deviceScaleFactor = display.device_scale_factor(); | 1452 results->deviceScaleFactor = display.device_scale_factor(); |
1457 results->orientationAngle = display.RotationAsDegree(); | 1453 results->orientationAngle = display.RotationAsDegree(); |
1458 gfx::DeviceDisplayInfo info; | 1454 gfx::DeviceDisplayInfo info; |
1459 results->depth = info.GetBitsPerPixel(); | 1455 results->depth = info.GetBitsPerPixel(); |
1460 results->depthPerComponent = info.GetBitsPerComponent(); | 1456 results->depthPerComponent = info.GetBitsPerComponent(); |
1461 results->isMonochrome = (results->depthPerComponent == 0); | 1457 results->isMonochrome = (results->depthPerComponent == 0); |
1462 } | 1458 } |
1463 | 1459 |
1464 } // namespace content | 1460 } // namespace content |
OLD | NEW |