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

Unified Diff: third_party/WebKit/Source/core/page/FocusChangedObserver.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/FocusChangedObserver.h
diff --git a/third_party/WebKit/Source/core/page/FocusChangedObserver.h b/third_party/WebKit/Source/core/page/FocusChangedObserver.h
new file mode 100644
index 0000000000000000000000000000000000000000..01753b70236244d04571779ba11f439b35b7aff4
--- /dev/null
+++ b/third_party/WebKit/Source/core/page/FocusChangedObserver.h
@@ -0,0 +1,28 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef FocusChangedObserver_h
+#define FocusChangedObserver_h
+
+#include "core/CoreExport.h"
+#include "platform/heap/Handle.h"
+
+namespace blink {
+
+class LocalFrame;
+class Page;
+
+class CORE_EXPORT FocusChangedObserver : public GarbageCollectedMixin {
+ public:
+ virtual void focusedFrameChanged() = 0;
+
+ protected:
+ bool isFrameFocused(LocalFrame*);
+ void observe(Page*);
haraken 2017/02/06 01:33:17 Maybe can we remove the observe() method by making
mthiesse 2017/02/06 16:37:47 Done.
+ virtual ~FocusChangedObserver() {}
+};
+
+} // namespace blink
+
+#endif // FocusChangedObserver_h

Powered by Google App Engine
This is Rietveld 408576698