Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(242)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_android.cc

Issue 569003002: Fix for Insertion Handle disappearing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changed according to review comments Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 811 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 822
823 cc::ViewportSelectionBound start_bound, end_bound; 823 cc::ViewportSelectionBound start_bound, end_bound;
824 start_bound.visible = true; 824 start_bound.visible = true;
825 end_bound.visible = true; 825 end_bound.visible = true;
826 start_bound.edge_top = start_rect.origin(); 826 start_bound.edge_top = start_rect.origin();
827 start_bound.edge_bottom = start_rect.bottom_left(); 827 start_bound.edge_bottom = start_rect.bottom_left();
828 end_bound.edge_top = end_rect.origin(); 828 end_bound.edge_top = end_rect.origin();
829 end_bound.edge_bottom = end_rect.bottom_left(); 829 end_bound.edge_bottom = end_rect.bottom_left();
830 830
831 if (params.anchor_rect == params.focus_rect) { 831 if (params.anchor_rect == params.focus_rect) {
832 if (params.anchor_rect.x() && params.anchor_rect.y()) 832 if (params.anchor_rect.x() || params.anchor_rect.y())
833 start_bound.type = end_bound.type = cc::SELECTION_BOUND_CENTER; 833 start_bound.type = end_bound.type = cc::SELECTION_BOUND_CENTER;
834 } else { 834 } else {
835 start_bound.type = params.anchor_dir == blink::WebTextDirectionRightToLeft 835 start_bound.type = params.anchor_dir == blink::WebTextDirectionRightToLeft
836 ? cc::SELECTION_BOUND_LEFT 836 ? cc::SELECTION_BOUND_LEFT
837 : cc::SELECTION_BOUND_RIGHT; 837 : cc::SELECTION_BOUND_RIGHT;
838 end_bound.type = params.focus_dir == blink::WebTextDirectionRightToLeft 838 end_bound.type = params.focus_dir == blink::WebTextDirectionRightToLeft
839 ? cc::SELECTION_BOUND_RIGHT 839 ? cc::SELECTION_BOUND_RIGHT
840 : cc::SELECTION_BOUND_LEFT; 840 : cc::SELECTION_BOUND_LEFT;
841 } 841 }
842 842
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 results->orientationAngle = display.RotationAsDegree(); 1867 results->orientationAngle = display.RotationAsDegree();
1868 results->orientationType = 1868 results->orientationType =
1869 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display); 1869 RenderWidgetHostViewBase::GetOrientationTypeForMobile(display);
1870 gfx::DeviceDisplayInfo info; 1870 gfx::DeviceDisplayInfo info;
1871 results->depth = info.GetBitsPerPixel(); 1871 results->depth = info.GetBitsPerPixel();
1872 results->depthPerComponent = info.GetBitsPerComponent(); 1872 results->depthPerComponent = info.GetBitsPerComponent();
1873 results->isMonochrome = (results->depthPerComponent == 0); 1873 results->isMonochrome = (results->depthPerComponent == 0);
1874 } 1874 }
1875 1875
1876 } // namespace content 1876 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698