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

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..dc697b54b59c3a254cf2bcedbbed3f60830fc38e
--- /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:
+ explicit FocusChangedObserver(Page*);
+ virtual void focusedFrameChanged() = 0;
+
+ protected:
+ bool isFrameFocused(LocalFrame*);
+ virtual ~FocusChangedObserver() {}
+};
+
+} // namespace blink
+
+#endif // FocusChangedObserver_h
« no previous file with comments | « third_party/WebKit/Source/core/page/BUILD.gn ('k') | third_party/WebKit/Source/core/page/FocusChangedObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698