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

Unified Diff: cc/ipc/selection_struct_traits.h

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, 5 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 side-by-side diff with in-line comments
Download patch
Index: cc/ipc/selection_struct_traits.h
diff --git a/cc/ipc/selection_struct_traits.h b/cc/ipc/selection_struct_traits.h
index c5d52f780fc48537b9e17958380b8d2ab169bc6a..4a35d48a21d3bfd0580d4825039b55766038672f 100644
--- a/cc/ipc/selection_struct_traits.h
+++ b/cc/ipc/selection_struct_traits.h
@@ -31,6 +31,11 @@ struct StructTraits<cc::mojom::Selection, cc::Selection<gfx::SelectionBound>> {
return selection.is_empty_text_form_control;
}
+ static bool is_handle_visible(
+ const cc::Selection<gfx::SelectionBound>& selection) {
+ return selection.is_handle_visible;
+ }
+
static bool Read(cc::mojom::SelectionDataView data,
cc::Selection<gfx::SelectionBound>* out) {
if (!data.ReadStart(&out->start) || !data.ReadEnd(&out->end))
@@ -38,6 +43,7 @@ struct StructTraits<cc::mojom::Selection, cc::Selection<gfx::SelectionBound>> {
out->is_editable = data.is_editable();
out->is_empty_text_form_control = data.is_empty_text_form_control();
+ out->is_handle_visible = data.is_handle_visible();
return true;
}
};

Powered by Google App Engine
This is Rietveld 408576698