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

Unified Diff: third_party/WebKit/Source/core/editing/LayoutSelection.h

Issue 2616623002: Do not send redundant selectionchange-events (decouple focus) (Closed)
Patch Set: Add comment Created 3 years, 8 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: third_party/WebKit/Source/core/editing/LayoutSelection.h
diff --git a/third_party/WebKit/Source/core/editing/LayoutSelection.h b/third_party/WebKit/Source/core/editing/LayoutSelection.h
index db981e09b0ed081b14676c869abf101c14952cfc..f5761339724b425e6965bac1bdf83402528d78fc 100644
--- a/third_party/WebKit/Source/core/editing/LayoutSelection.h
+++ b/third_party/WebKit/Source/core/editing/LayoutSelection.h
@@ -33,12 +33,14 @@ class LayoutView;
class LayoutSelection final : public GarbageCollected<LayoutSelection> {
public:
+ enum PaintHint { kHide, kKeep, kPaint };
yosin_UTC9 2017/04/13 09:31:50 nit: s/enum/enum class/
hugoh_UTC2 2017/04/14 01:34:47 Done.
+
static LayoutSelection* Create(FrameSelection& frame_selection) {
return new LayoutSelection(frame_selection);
}
bool HasPendingSelection() const { return has_pending_selection_; }
- void SetHasPendingSelection() { has_pending_selection_ = true; }
+ void SetHasPendingSelection(PaintHint);
void Commit(LayoutView&);
IntRect SelectionBounds();
@@ -69,6 +71,7 @@ class LayoutSelection final : public GarbageCollected<LayoutSelection> {
Member<FrameSelection> frame_selection_;
bool has_pending_selection_ : 1;
+ bool force_hide_ : 1;
// The current selection represented as 2 boundaries.
// Selection boundaries are represented in LayoutView by a tuple

Powered by Google App Engine
This is Rietveld 408576698