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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 2201853002: Blink handle selection handle visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing aura problems Created 4 years, 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/renderer/gpu/render_widget_compositor.h" 5 #include "content/renderer/gpu/render_widget_compositor.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <limits> 8 #include <limits>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 return cc_bound; 126 return cc_bound;
127 } 127 }
128 128
129 cc::LayerSelection ConvertWebSelection(const WebSelection& web_selection) { 129 cc::LayerSelection ConvertWebSelection(const WebSelection& web_selection) {
130 cc::LayerSelection cc_selection; 130 cc::LayerSelection cc_selection;
131 cc_selection.start = ConvertWebSelectionBound(web_selection, true); 131 cc_selection.start = ConvertWebSelectionBound(web_selection, true);
132 cc_selection.end = ConvertWebSelectionBound(web_selection, false); 132 cc_selection.end = ConvertWebSelectionBound(web_selection, false);
133 cc_selection.is_editable = web_selection.isEditable(); 133 cc_selection.is_editable = web_selection.isEditable();
134 cc_selection.is_empty_text_form_control = 134 cc_selection.is_empty_text_form_control =
135 web_selection.isEmptyTextFormControl(); 135 web_selection.isEmptyTextFormControl();
136 cc_selection.is_handle_visible = web_selection.isHandleVisible();
136 return cc_selection; 137 return cc_selection;
137 } 138 }
138 139
139 gfx::Size CalculateDefaultTileSize(float initial_device_scale_factor) { 140 gfx::Size CalculateDefaultTileSize(float initial_device_scale_factor) {
140 int default_tile_size = 256; 141 int default_tile_size = 256;
141 #if defined(OS_ANDROID) 142 #if defined(OS_ANDROID)
142 // TODO(epenner): unify this for all platforms if it 143 // TODO(epenner): unify this for all platforms if it
143 // makes sense (http://crbug.com/159524) 144 // makes sense (http://crbug.com/159524)
144 145
145 gfx::DeviceDisplayInfo info; 146 gfx::DeviceDisplayInfo info;
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 1143
1143 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized)); 1144 remote_proto_channel_receiver_->OnProtoReceived(std::move(deserialized));
1144 } 1145 }
1145 1146
1146 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor( 1147 void RenderWidgetCompositor::SetPaintedDeviceScaleFactor(
1147 float device_scale) { 1148 float device_scale) {
1148 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale); 1149 layer_tree_host_->SetPaintedDeviceScaleFactor(device_scale);
1149 } 1150 }
1150 1151
1151 } // namespace content 1152 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698