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

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

Issue 2841093002: Algorithm for deciding if a frame's selection should be hidden (Closed)
Patch Set: More robust logic (no need to modify LayoutTests?) and new C++ unit tests 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/FrameSelection.h
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.h b/third_party/WebKit/Source/core/editing/FrameSelection.h
index a145ccb7ecb15fee9af43359cef2c300884a8a60..06b9964927accbb851f018d3b14e1daf93a9aed9 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.h
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.h
@@ -32,7 +32,6 @@
#include "core/dom/Range.h"
#include "core/dom/SynchronousMutationObserver.h"
#include "core/editing/EphemeralRange.h"
-#include "core/editing/LayoutSelection.h"
#include "core/editing/VisiblePosition.h"
#include "core/editing/VisibleSelection.h"
#include "core/editing/iterators/TextIteratorBehavior.h"
@@ -131,6 +130,7 @@ class CORE_EXPORT FrameSelection final
FrameSelection::SetSelectionOptions = kCloseTyping | kClearTypingStyle);
void SelectAll();
void Clear();
+ bool IsHidden();
// TODO(tkent): These two functions were added to fix crbug.com/695211 without
// changing focus behavior. Once we fix crbug.com/690272, we can remove these
@@ -243,7 +243,7 @@ class CORE_EXPORT FrameSelection final
RevealExtentOption = kDoNotRevealExtent);
void SetSelectionFromNone();
- void UpdateAppearance(LayoutSelection::PaintHint);
+ void UpdateAppearance();
bool ShouldShowBlockCursor() const;
void SetShouldShowBlockCursor(bool);
@@ -309,7 +309,6 @@ class CORE_EXPORT FrameSelection final
const Member<FrameCaret> frame_caret_;
bool use_secure_keyboard_entry_when_active_ = false;
- bool text_control_focused_ = false;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698