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

Unified Diff: chrome/browser/chrome_browser_parts_touch.cc

Issue 8402002: Reenable triggering of screen rotations by sensors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer comments. Created 9 years, 1 month 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: chrome/browser/chrome_browser_parts_touch.cc
diff --git a/chrome/browser/chrome_browser_parts_touch.cc b/chrome/browser/chrome_browser_parts_touch.cc
new file mode 100644
index 0000000000000000000000000000000000000000..506cf1d320f759ac30b284f641ded9474bbc2a5f
--- /dev/null
+++ b/chrome/browser/chrome_browser_parts_touch.cc
@@ -0,0 +1,20 @@
+// Copyright (c) 2011 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.
+
+#include "chrome/browser/chrome_browser_parts_touch.h"
+
+#include "chrome/browser/ui/touch/sensors/screen_orientation_listener.h"
+
+ChromeBrowserPartsTouch::ChromeBrowserPartsTouch()
+ : content::BrowserMainParts() {
+}
+
+void ChromeBrowserPartsTouch::PreMainMessageLoopRun() {
+ // Make sure the singleton ScreenOrientationListener object is created.
+ ScreenOrientationListener::GetInstance();
+}
+
+bool ChromeBrowserPartsTouch::MainMessageLoopRun(int* result_code) {
+ return false;
+}

Powered by Google App Engine
This is Rietveld 408576698