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

Unified Diff: athena/screen/public/screen_manager.h

Issue 431183003: Rotate screen in response to accelerator or device orientation sensors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use the FILE thread for IO 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: athena/screen/public/screen_manager.h
diff --git a/athena/screen/public/screen_manager.h b/athena/screen/public/screen_manager.h
index 82ad85592bf7067f2b44a9bbddb58f9ac7b17d7f..297f300c588522a3c8952792f48359d049637b43 100644
--- a/athena/screen/public/screen_manager.h
+++ b/athena/screen/public/screen_manager.h
@@ -8,6 +8,7 @@
#include <string>
#include "athena/athena_export.h"
+#include "ui/gfx/display.h"
namespace aura {
class Window;
@@ -68,6 +69,12 @@ class ATHENA_EXPORT ScreenManager {
// Sets the background image.
virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0;
+ // Get/set screen rotation.
+ // TODO(flackr): Extract and use ash DisplayManager to get/set rotation
+ // instead: http://crbug.com/401044.
+ virtual gfx::Display::Rotation GetRotation() = 0;
oshima 2014/08/13 22:46:34 can you change to use use gfx::Screen::GetPrimaryD
flackr 2014/08/14 17:29:51 Do you mean in the implementation of this? Done. O
oshima 2014/08/14 19:28:53 The latter. We already have an API to get display
flackr 2014/08/14 21:04:09 Done.
+ virtual void SetRotation(gfx::Display::Rotation rotation) = 0;
+
// Returns the LayerAnimator to use to animate the entire screen (e.g. fade
// screen to white).
virtual ui::LayerAnimator* GetScreenAnimator() = 0;

Powered by Google App Engine
This is Rietveld 408576698