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

Unified Diff: third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp

Issue 2396573002: reflow comments in modules/[presentation,storage] (Closed)
Patch Set: Created 4 years, 2 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/modules/screen_orientation/ScreenOrientationController.cpp
diff --git a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
index 9f48134270c6c05d832b2a293c08d5f4e995b962..dbeed629a02df14a7bef88672134a0d5b8a1d270 100644
--- a/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
+++ b/third_party/WebKit/Source/modules/screen_orientation/ScreenOrientationController.cpp
@@ -49,13 +49,14 @@ const char* ScreenOrientationController::supplementName() {
return "ScreenOrientationController";
}
-// Compute the screen orientation using the orientation angle and the screen width / height.
+// Compute the screen orientation using the orientation angle and the screen
+// width / height.
WebScreenOrientationType ScreenOrientationController::computeOrientation(
const IntRect& rect,
uint16_t rotation) {
// Bypass orientation detection in layout tests to get consistent results.
- // FIXME: The screen dimension should be fixed when running the layout tests to avoid such
- // issues.
+ // FIXME: The screen dimension should be fixed when running the layout tests
+ // to avoid such issues.
if (LayoutTestSupport::isRunningLayoutTest())
return WebScreenOrientationPortraitPrimary;
@@ -89,7 +90,8 @@ void ScreenOrientationController::updateOrientation() {
WebScreenInfo screenInfo = chromeClient.screenInfo();
WebScreenOrientationType orientationType = screenInfo.orientationType;
if (orientationType == WebScreenOrientationUndefined) {
- // The embedder could not provide us with an orientation, deduce it ourselves.
+ // The embedder could not provide us with an orientation, deduce it
+ // ourselves.
orientationType = computeOrientation(chromeClient.screenInfo().rect,
screenInfo.orientationAngle);
}

Powered by Google App Engine
This is Rietveld 408576698