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

Unified Diff: third_party/WebKit/Source/core/page/FocusController.h

Issue 1433103002: Use FocusParams in FocusController::setFocusedElement and Document::setFocusedElement arguments. (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
Index: third_party/WebKit/Source/core/page/FocusController.h
diff --git a/third_party/WebKit/Source/core/page/FocusController.h b/third_party/WebKit/Source/core/page/FocusController.h
index 68e2a9cceb64a0ab7ab02542be71cb57c1327855..6c8c017895fdec8a2e3e93829a7267875f5e4f07 100644
--- a/third_party/WebKit/Source/core/page/FocusController.h
+++ b/third_party/WebKit/Source/core/page/FocusController.h
@@ -37,6 +37,7 @@
namespace blink {
struct FocusCandidate;
+struct FocusParams;
class Element;
class Frame;
class HTMLFrameOwnerElement;
@@ -64,7 +65,10 @@ public:
bool advanceFocus(WebFocusType type, InputDeviceCapabilities* sourceCapabilities = nullptr) { return advanceFocus(type, false, sourceCapabilities); }
Element* findFocusableElement(WebFocusType, Node&);
- bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, WebFocusType = WebFocusTypeNone, InputDeviceCapabilities* sourceCapabilities = nullptr);
+ bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>, const FocusParams&);
+ // |setFocusedElement| variant with SelectionBehaviorOnFocus::None,
+ // |WebFocusTypeNone, and null InputDeviceCapabilities.
+ bool setFocusedElement(Element*, PassRefPtrWillBeRawPtr<Frame>);
void setActive(bool);
bool isActive() const { return m_isActive; }
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | third_party/WebKit/Source/core/page/FocusController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698