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

Side by Side Diff: Source/modules/screen_orientation/ScreenOrientation.cpp

Issue 1165753006: Update internal screen orientation headers and remove temporary redirects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@move_screen_orientation_public
Patch Set: rebase Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "modules/screen_orientation/ScreenOrientation.h" 6 #include "modules/screen_orientation/ScreenOrientation.h"
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "core/dom/DOMException.h" 10 #include "core/dom/DOMException.h"
11 #include "core/dom/Document.h" 11 #include "core/dom/Document.h"
12 #include "core/dom/ExceptionCode.h" 12 #include "core/dom/ExceptionCode.h"
13 #include "core/frame/LocalFrame.h" 13 #include "core/frame/LocalFrame.h"
14 #include "modules/EventTargetModules.h" 14 #include "modules/EventTargetModules.h"
15 #include "modules/screen_orientation/LockOrientationCallback.h" 15 #include "modules/screen_orientation/LockOrientationCallback.h"
16 #include "modules/screen_orientation/ScreenOrientationController.h" 16 #include "modules/screen_orientation/ScreenOrientationController.h"
17 #include "public/platform/WebScreenOrientationType.h" 17 #include "public/platform/modules/screen_orientation/WebScreenOrientationType.h"
18 18
19 // This code assumes that WebScreenOrientationType values are included in WebScr eenOrientationLockType. 19 // This code assumes that WebScreenOrientationType values are included in WebScr eenOrientationLockType.
20 #define STATIC_ASSERT_MATCHING_ENUM(enum1, enum2) \ 20 #define STATIC_ASSERT_MATCHING_ENUM(enum1, enum2) \
21 static_assert(static_cast<unsigned>(blink::enum1) == static_cast<unsigned>(b link::enum2), "mismatching enum values") 21 static_assert(static_cast<unsigned>(blink::enum1) == static_cast<unsigned>(b link::enum2), "mismatching enum values")
22 STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationPortraitPrimary, WebScreenOrient ationLockPortraitPrimary); 22 STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationPortraitPrimary, WebScreenOrient ationLockPortraitPrimary);
23 STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationPortraitSecondary, WebScreenOrie ntationLockPortraitSecondary); 23 STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationPortraitSecondary, WebScreenOrie ntationLockPortraitSecondary);
24 STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationLandscapePrimary, WebScreenOrien tationLockLandscapePrimary); 24 STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationLandscapePrimary, WebScreenOrien tationLockLandscapePrimary);
25 STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationLandscapeSecondary, WebScreenOri entationLockLandscapeSecondary); 25 STATIC_ASSERT_MATCHING_ENUM(WebScreenOrientationLandscapeSecondary, WebScreenOri entationLockLandscapeSecondary);
26 26
27 namespace blink { 27 namespace blink {
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 return ScreenOrientationController::from(*m_frame); 189 return ScreenOrientationController::from(*m_frame);
190 } 190 }
191 191
192 DEFINE_TRACE(ScreenOrientation) 192 DEFINE_TRACE(ScreenOrientation)
193 { 193 {
194 RefCountedGarbageCollectedEventTargetWithInlineData<ScreenOrientation>::trac e(visitor); 194 RefCountedGarbageCollectedEventTargetWithInlineData<ScreenOrientation>::trac e(visitor);
195 DOMWindowProperty::trace(visitor); 195 DOMWindowProperty::trace(visitor);
196 } 196 }
197 197
198 } // namespace blink 198 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/screen_orientation/ScreenOrientation.h ('k') | Source/modules/screen_orientation/ScreenOrientationController.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698