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

Unified Diff: cc/input/selection.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/input/selection.h
diff --git a/cc/input/selection.h b/cc/input/selection.h
index 1f3c6ebac052e0fed32d44a1b2edb3ecc489423e..c84caa1fa1317f934e419e3cfc1e56b95879cee5 100644
--- a/cc/input/selection.h
+++ b/cc/input/selection.h
@@ -11,12 +11,16 @@ namespace cc {
template <typename BoundType>
struct CC_EXPORT Selection {
- Selection() : is_editable(false), is_empty_text_form_control(false) {}
+ Selection()
+ : is_editable(false),
+ is_empty_text_form_control(false),
+ is_handle_visible(true) {}
~Selection() {}
BoundType start, end;
bool is_editable;
bool is_empty_text_form_control;
+ bool is_handle_visible;
};
template <typename BoundType>
@@ -24,7 +28,8 @@ inline bool operator==(const Selection<BoundType>& lhs,
const Selection<BoundType>& rhs) {
return lhs.start == rhs.start && lhs.end == rhs.end &&
lhs.is_editable == rhs.is_editable &&
- lhs.is_empty_text_form_control == rhs.is_empty_text_form_control;
+ lhs.is_empty_text_form_control == rhs.is_empty_text_form_control &&
+ lhs.is_handle_visible == rhs.is_handle_visible;
}
template <typename BoundType>

Powered by Google App Engine
This is Rietveld 408576698