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

Side by Side 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: Add dependencies on ipc and content. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 5 #ifndef ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 6 #define ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "athena/athena_export.h" 10 #include "athena/athena_export.h"
11 #include "ui/gfx/display.h"
11 12
12 namespace aura { 13 namespace aura {
13 class Window; 14 class Window;
14 } 15 }
15 16
16 namespace gfx { 17 namespace gfx {
17 class ImageSkia; 18 class ImageSkia;
18 } 19 }
19 20
20 namespace ui { 21 namespace ui {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 62
62 // Creates the container window on the screen. 63 // Creates the container window on the screen.
63 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0; 64 virtual aura::Window* CreateContainer(const ContainerParams& params) = 0;
64 65
65 // Return the context object to be used for widget creation. 66 // Return the context object to be used for widget creation.
66 virtual aura::Window* GetContext() = 0; 67 virtual aura::Window* GetContext() = 0;
67 68
68 // Sets the background image. 69 // Sets the background image.
69 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0; 70 virtual void SetBackgroundImage(const gfx::ImageSkia& image) = 0;
70 71
72 // Set screen rotation.
73 // TODO(flackr): Extract and use ash DisplayManager to set rotation
74 // instead: http://crbug.com/401044.
75 virtual void SetRotation(gfx::Display::Rotation rotation) = 0;
76
71 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade 77 // Returns the LayerAnimator to use to animate the entire screen (e.g. fade
72 // screen to white). 78 // screen to white).
73 virtual ui::LayerAnimator* GetScreenAnimator() = 0; 79 virtual ui::LayerAnimator* GetScreenAnimator() = 0;
74 80
75 // Create a focus rules. 81 // Create a focus rules.
76 // TODO(oshima): Make this virtual function. 82 // TODO(oshima): Make this virtual function.
77 static wm::FocusRules* CreateFocusRules(); 83 static wm::FocusRules* CreateFocusRules();
78 }; 84 };
79 85
80 } // namespace athena 86 } // namespace athena
81 87
82 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_ 88 #endif // ATHENA_SCREEN_PUBLIC_SCREEN_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698