| Index: Source/modules/screen_orientation/ScreenScreenOrientation.h
|
| diff --git a/Source/modules/screen_orientation/ScreenScreenOrientation.h b/Source/modules/screen_orientation/ScreenScreenOrientation.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b8c442e5714af58798585f3e35f1ff1cb85288ce
|
| --- /dev/null
|
| +++ b/Source/modules/screen_orientation/ScreenScreenOrientation.h
|
| @@ -0,0 +1,36 @@
|
| +// 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 ScreenScreenOrientation_h
|
| +#define ScreenScreenOrientation_h
|
| +
|
| +#include "platform/Supplementable.h"
|
| +
|
| +namespace WebCore {
|
| +
|
| +class ScreenOrientation;
|
| +class Screen;
|
| +class ScriptState;
|
| +
|
| +class ScreenScreenOrientation FINAL :
|
| + public NoBaseWillBeGarbageCollectedFinalized<ScreenScreenOrientation>,
|
| + public WillBeHeapSupplement<Screen> {
|
| + WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(ScreenScreenOrientation);
|
| +public:
|
| + static ScreenScreenOrientation& from(Screen&);
|
| + virtual ~ScreenScreenOrientation();
|
| +
|
| + static ScreenOrientation* orientation(ScriptState*, Screen&);
|
| +
|
| + virtual void trace(Visitor*) OVERRIDE;
|
| +
|
| +private:
|
| + static const char* supplementName();
|
| +
|
| + PersistentWillBeMember<ScreenOrientation> m_orientation;
|
| +};
|
| +
|
| +} // namespace WebCore
|
| +
|
| +#endif // ScreenScreenOrientation_h
|
|
|