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

Unified Diff: Source/modules/screen_orientation/ScreenOrientation.cpp

Issue 469773002: Cleanup blink:: prefix usage in Source/core/modules/[mediasource/*.cpp to websockets/*.cpp] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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/ScreenOrientation.cpp
diff --git a/Source/modules/screen_orientation/ScreenOrientation.cpp b/Source/modules/screen_orientation/ScreenOrientation.cpp
index 47cac30ef396055ee3c2683da16186c2da1c9f24..da52de7fd15ecaff35808971abc93a0516b56128 100644
--- a/Source/modules/screen_orientation/ScreenOrientation.cpp
+++ b/Source/modules/screen_orientation/ScreenOrientation.cpp
@@ -43,21 +43,21 @@ static ScreenOrientationInfo* orientationsMap(unsigned& length)
DEFINE_STATIC_LOCAL(const AtomicString, natural, ("natural", AtomicString::ConstructFromLiteral));
static ScreenOrientationInfo orientationMap[] = {
- { portraitPrimary, blink::WebScreenOrientationLockPortraitPrimary },
- { portraitSecondary, blink::WebScreenOrientationLockPortraitSecondary },
- { landscapePrimary, blink::WebScreenOrientationLockLandscapePrimary },
- { landscapeSecondary, blink::WebScreenOrientationLockLandscapeSecondary },
- { any, blink::WebScreenOrientationLockAny },
- { portrait, blink::WebScreenOrientationLockPortrait },
- { landscape, blink::WebScreenOrientationLockLandscape },
- { natural, blink::WebScreenOrientationLockNatural }
+ { portraitPrimary, WebScreenOrientationLockPortraitPrimary },
+ { portraitSecondary, WebScreenOrientationLockPortraitSecondary },
+ { landscapePrimary, WebScreenOrientationLockLandscapePrimary },
+ { landscapeSecondary, WebScreenOrientationLockLandscapeSecondary },
+ { any, WebScreenOrientationLockAny },
+ { portrait, WebScreenOrientationLockPortrait },
+ { landscape, WebScreenOrientationLockLandscape },
+ { natural, WebScreenOrientationLockNatural }
};
length = WTF_ARRAY_LENGTH(orientationMap);
return orientationMap;
}
-const AtomicString& ScreenOrientation::orientationTypeToString(blink::WebScreenOrientationType orientation)
+const AtomicString& ScreenOrientation::orientationTypeToString(WebScreenOrientationType orientation)
{
unsigned length = 0;
ScreenOrientationInfo* orientationMap = orientationsMap(length);
@@ -70,17 +70,17 @@ const AtomicString& ScreenOrientation::orientationTypeToString(blink::WebScreenO
return nullAtom;
}
-static blink::WebScreenOrientationLockType stringToOrientationLock(const AtomicString& orientationLockString)
+static WebScreenOrientationLockType stringToOrientationLock(const AtomicString& orientationLockString)
{
unsigned length = 0;
ScreenOrientationInfo* orientationMap = orientationsMap(length);
for (unsigned i = 0; i < length; ++i) {
if (orientationMap[i].name == orientationLockString)
- return static_cast<blink::WebScreenOrientationLockType>(orientationMap[i].orientation);
+ return static_cast<WebScreenOrientationLockType>(orientationMap[i].orientation);
}
ASSERT_NOT_REACHED();
- return blink::WebScreenOrientationLockDefault;
+ return WebScreenOrientationLockDefault;
}
// static
@@ -103,7 +103,7 @@ ScreenOrientation* ScreenOrientation::create(LocalFrame* frame)
ScreenOrientation::ScreenOrientation(LocalFrame* frame)
: DOMWindowProperty(frame)
- , m_type(blink::WebScreenOrientationUndefined)
+ , m_type(WebScreenOrientationUndefined)
, m_angle(0)
{
ScriptWrappable::init(this);
@@ -135,7 +135,7 @@ unsigned short ScreenOrientation::angle() const
return m_angle;
}
-void ScreenOrientation::setType(blink::WebScreenOrientationType type)
+void ScreenOrientation::setType(WebScreenOrientationType type)
{
m_type = type;
}

Powered by Google App Engine
This is Rietveld 408576698