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

Unified Diff: content/public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template

Issue 196193002: Implement ScreenOrientationProvider for Chrome Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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: content/public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template
diff --git a/content/test/data/service_worker/worker_install_fulfilled.js b/content/public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template
similarity index 52%
copy from content/test/data/service_worker/worker_install_fulfilled.js
copy to content/public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template
index 74a2cc9ca29a4ebcefd00360f9ba1c255ea81b0d..162abd2bae9059f8ee6289274b6ec71143a87560 100644
--- a/content/test/data/service_worker/worker_install_fulfilled.js
+++ b/content/public/android/java/src/org/chromium/content/common/ScreenOrientationValues.template
@@ -2,7 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-this.oninstall = function(event) {
- event.waitUntil(new Promise(function(r) { setTimeout(r, 5); }));
- event.waitUntil(1);
-};
+package org.chromium.content.common;
+
+public class ScreenOrientationValues {
+#define DEFINE_SCREEN_ORIENTATION_VALUE(name, value) public static final int name = value;
+#include "content/public/common/screen_orientation_values_list.h"
+#undef DEFINE_SCREEN_ORIENTATION_VALUE
+}

Powered by Google App Engine
This is Rietveld 408576698