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

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

Issue 2668003003: Provide WebVR pose data only to the focused frame. (Closed)
Patch Set: Address comments Created 3 years, 10 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/page/FocusController.h
diff --git a/third_party/WebKit/Source/core/page/FocusController.h b/third_party/WebKit/Source/core/page/FocusController.h
index 273cad63816d047e1c7a0fb3c3a656ed3ddade2d..fbe594a847e5c0952411e8b36499b3e98e00ed01 100644
--- a/third_party/WebKit/Source/core/page/FocusController.h
+++ b/third_party/WebKit/Source/core/page/FocusController.h
@@ -40,6 +40,7 @@ struct FocusCandidate;
struct FocusParams;
class Document;
class Element;
+class FocusChangedObserver;
class Frame;
class HTMLFrameOwnerElement;
class InputDeviceCapabilities;
@@ -93,6 +94,8 @@ class CORE_EXPORT FocusController final
void setFocused(bool);
bool isFocused() const { return m_isFocused; }
+ void registerFocusChangedObserver(FocusChangedObserver*);
+
DECLARE_TRACE();
private:
@@ -118,11 +121,14 @@ class CORE_EXPORT FocusController final
WebFocusType,
FocusCandidate& closest);
+ void notifyFocusChangedObservers() const;
+
Member<Page> m_page;
Member<Frame> m_focusedFrame;
bool m_isActive;
bool m_isFocused;
bool m_isChangingFocusedFrame;
+ HeapHashSet<WeakMember<FocusChangedObserver>> m_focusChangedObservers;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/page/FocusChangedObserver.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