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

Unified Diff: Source/modules/screen_orientation/ScreenOrientationDispatcher.h

Issue 277413002: Make screen.orientation implementation use WebScreenInfo::orientationType (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add FIXME comment Created 6 years, 7 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: Source/modules/screen_orientation/ScreenOrientationDispatcher.h
diff --git a/Source/modules/screen_orientation/ScreenOrientationDispatcher.h b/Source/modules/screen_orientation/ScreenOrientationDispatcher.h
deleted file mode 100644
index f5ee41c8dfb0dd177a9ff21f6a9d87c36672d0bf..0000000000000000000000000000000000000000
--- a/Source/modules/screen_orientation/ScreenOrientationDispatcher.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2014 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 ScreenOrientationDispatcher_h
-#define ScreenOrientationDispatcher_h
-
-#include "platform/heap/Handle.h"
-#include "public/platform/WebScreenOrientationListener.h"
-
-#if ENABLE(OILPAN)
-#include "wtf/HashSet.h"
-#else
-#include "wtf/Vector.h"
-#endif
-
-namespace WebCore {
-
-class ScreenOrientationController;
-
-class ScreenOrientationDispatcher FINAL : public NoBaseWillBeGarbageCollectedFinalized<ScreenOrientationDispatcher>, public blink::WebScreenOrientationListener {
-public:
- static ScreenOrientationDispatcher& instance();
-
- void addController(ScreenOrientationController*);
-
-#if ENABLE(OILPAN)
- void trace(Visitor*);
-#else
- void removeController(ScreenOrientationController*);
-#endif
-
-private:
- ScreenOrientationDispatcher();
-
-#if !ENABLE(OILPAN)
- void purgeControllers();
-#endif
-
- void startListening();
- void stopListening();
-
- // WebScreenOrientationListener API.
- virtual void didChangeScreenOrientation(blink::WebScreenOrientationType) OVERRIDE;
-
-#if ENABLE(OILPAN)
- HeapHashSet<WeakMember<ScreenOrientationController> > m_controllers;
-#else
- Vector<ScreenOrientationController*> m_controllers;
- bool m_needsPurge;
- bool m_isDispatching;
-#endif
-
-};
-
-} // namespace WebCore
-
-#endif // ScreenOrientationDispatcher_h

Powered by Google App Engine
This is Rietveld 408576698