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

Side by Side Diff: cc/input/layer_selection_bound.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/logging.h" 5 #include "base/logging.h"
6 #include "cc/input/layer_selection_bound.h" 6 #include "cc/input/layer_selection_bound.h"
7 #include "cc/proto/gfx_conversions.h" 7 #include "cc/proto/gfx_conversions.h"
8 #include "cc/proto/layer_selection_bound.pb.h" 8 #include "cc/proto/layer_selection_bound.pb.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 edge_bottom = ProtoToPoint(proto.edge_bottom()); 75 edge_bottom = ProtoToPoint(proto.edge_bottom());
76 layer_id = proto.layer_id(); 76 layer_id = proto.layer_id();
77 } 77 }
78 78
79 void LayerSelectionToProtobuf(const LayerSelection& selection, 79 void LayerSelectionToProtobuf(const LayerSelection& selection,
80 proto::LayerSelection* proto) { 80 proto::LayerSelection* proto) {
81 selection.start.ToProtobuf(proto->mutable_start()); 81 selection.start.ToProtobuf(proto->mutable_start());
82 selection.end.ToProtobuf(proto->mutable_end()); 82 selection.end.ToProtobuf(proto->mutable_end());
83 proto->set_is_editable(selection.is_editable); 83 proto->set_is_editable(selection.is_editable);
84 proto->set_is_empty_text_form_control(selection.is_empty_text_form_control); 84 proto->set_is_empty_text_form_control(selection.is_empty_text_form_control);
85 proto->set_is_handle_visible(selection.is_handle_visible);
85 } 86 }
86 87
87 void LayerSelectionFromProtobuf(LayerSelection* selection, 88 void LayerSelectionFromProtobuf(LayerSelection* selection,
88 const proto::LayerSelection& proto) { 89 const proto::LayerSelection& proto) {
89 selection->start.FromProtobuf(proto.start()); 90 selection->start.FromProtobuf(proto.start());
90 selection->end.FromProtobuf(proto.end()); 91 selection->end.FromProtobuf(proto.end());
91 selection->is_editable = proto.is_editable(); 92 selection->is_editable = proto.is_editable();
92 selection->is_empty_text_form_control = proto.is_empty_text_form_control(); 93 selection->is_empty_text_form_control = proto.is_empty_text_form_control();
94 selection->is_handle_visible = proto.is_handle_visible();
93 } 95 }
94 96
95 } // namespace cc 97 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/input/selection.h » ('j') | third_party/WebKit/Source/core/layout/compositing/CompositedSelection.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698