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

Unified Diff: cc/ipc/selection_struct_traits.h

Issue 2691583003: Removed fields from Selection classes (Closed)
Patch Set: Forgot to remove fields from test Created 3 years, 10 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
« no previous file with comments | « cc/ipc/selection.mojom ('k') | cc/ipc/struct_traits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/ipc/selection_struct_traits.h
diff --git a/cc/ipc/selection_struct_traits.h b/cc/ipc/selection_struct_traits.h
index ca955c6d766985554cce77130d30842176b9ebc7..6115179c95af7a8ad803ebee13587a08b7f9e06f 100644
--- a/cc/ipc/selection_struct_traits.h
+++ b/cc/ipc/selection_struct_traits.h
@@ -23,23 +23,9 @@ struct StructTraits<cc::mojom::SelectionDataView,
return selection.end;
}
- static bool is_editable(const cc::Selection<gfx::SelectionBound>& selection) {
- return selection.is_editable;
- }
-
- static bool is_empty_text_form_control(
- const cc::Selection<gfx::SelectionBound>& selection) {
- return selection.is_empty_text_form_control;
- }
-
static bool Read(cc::mojom::SelectionDataView data,
cc::Selection<gfx::SelectionBound>* out) {
- if (!data.ReadStart(&out->start) || !data.ReadEnd(&out->end))
- return false;
-
- out->is_editable = data.is_editable();
- out->is_empty_text_form_control = data.is_empty_text_form_control();
- return true;
+ return data.ReadStart(&out->start) && data.ReadEnd(&out->end);
}
};
« no previous file with comments | « cc/ipc/selection.mojom ('k') | cc/ipc/struct_traits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698