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

Unified Diff: third_party/WebKit/Source/core/dom/Document.h

Issue 1420693006: Introduce a struct to store arguments of Element::focus(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.h
diff --git a/third_party/WebKit/Source/core/dom/Document.h b/third_party/WebKit/Source/core/dom/Document.h
index a37c362eff581261725c0ad1f3df2867667f8b12..b1a529e35411ed489803541fe06f3ac8ad298487 100644
--- a/third_party/WebKit/Source/core/dom/Document.h
+++ b/third_party/WebKit/Source/core/dom/Document.h
@@ -168,7 +168,7 @@ class TransformSource;
class TreeWalker;
class VisitedLinkState;
class WebGLRenderingContext;
-
+enum class SelectionBehaviorOnFocus;
struct AnnotatedRegionValue;
struct IconURL;
@@ -803,7 +803,7 @@ public:
void setUseSecureKeyboardEntryWhenActive(bool);
bool useSecureKeyboardEntryWhenActive() const;
- void updateFocusAppearanceSoon(bool restorePreviousSelection);
+ void updateFocusAppearanceSoon(SelectionBehaviorOnFocus);
void cancelFocusAppearanceUpdate();
bool isDNSPrefetchEnabled() const { return m_isDNSPrefetchEnabled; }
@@ -1246,8 +1246,8 @@ private:
bool m_isDNSPrefetchEnabled;
bool m_haveExplicitlyDisabledDNSPrefetch;
bool m_containsValidityStyleRules;
- bool m_updateFocusAppearanceRestoresSelection;
bool m_containsPlugins;
+ SelectionBehaviorOnFocus m_updateFocusAppearanceSelectionBahavior;
// http://www.whatwg.org/specs/web-apps/current-work/#ignore-destructive-writes-counter
unsigned m_ignoreDestructiveWriteCount;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698