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

Unified Diff: athena/system/system_ui_impl.cc

Issue 431183003: Rotate screen in response to accelerator or device orientation sensors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: athena/system/system_ui_impl.cc
diff --git a/athena/system/system_ui_impl.cc b/athena/system/system_ui_impl.cc
index 4b94d03a32c47e314b1d94131f802c5d4b6848e1..20ef2e2933bb75ea29bf1a83f6b7fdaaee264c41 100644
--- a/athena/system/system_ui_impl.cc
+++ b/athena/system/system_ui_impl.cc
@@ -4,6 +4,7 @@
#include "athena/system/public/system_ui.h"
+#include "athena/system/orientation_controller.h"
#include "athena/system/power_button_controller.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
@@ -15,13 +16,15 @@ SystemUI* instance = NULL;
class SystemUIImpl : public SystemUI {
public:
- SystemUIImpl() : power_button_controller_(new PowerButtonController) {
+ SystemUIImpl() : orientation_controller_(new OrientationController),
+ power_button_controller_(new PowerButtonController) {
}
virtual ~SystemUIImpl() {
}
private:
+ scoped_ptr<OrientationController> orientation_controller_;
scoped_ptr<PowerButtonController> power_button_controller_;
DISALLOW_COPY_AND_ASSIGN(SystemUIImpl);
« athena/system/orientation_controller.cc ('K') | « athena/system/orientation_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698