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

Unified Diff: views/desktop/desktop_window_view.h

Issue 8402002: Reenable triggering of screen rotations by sensors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Gardening 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
« no previous file with comments | « ui/gfx/compositor/screen_rotation.cc ('k') | views/desktop/desktop_window_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/desktop/desktop_window_view.h
diff --git a/views/desktop/desktop_window_view.h b/views/desktop/desktop_window_view.h
index fadc04efbcb3871a080c3f09549c457a31b0c32b..54471c954d92ad18305f54a1a7d7b33b1145358b 100644
--- a/views/desktop/desktop_window_view.h
+++ b/views/desktop/desktop_window_view.h
@@ -6,16 +6,22 @@
#define VIEWS_DESKTOP_DESKTOP_WINDOW_VIEW_H_
#include "base/observer_list.h"
+#include "ui/gfx/compositor/layer_animation_observer.h"
#include "views/view.h"
#include "views/widget/widget_delegate.h"
+namespace ui {
+class LayerAnimationSequence;
+} // namespace ui
+
namespace views {
class NativeWidgetViews;
class Widget;
namespace desktop {
-class DesktopWindowView : public WidgetDelegateView {
+class DesktopWindowView : public WidgetDelegateView,
+ public ui::LayerAnimationObserver {
public:
// Observers can listen to various events on the desktop.
class Observer {
@@ -73,6 +79,14 @@ class DesktopWindowView : public WidgetDelegateView {
virtual View* GetContentsView() OVERRIDE;
virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
+ // Implementation of ui::LayerAnimationObserver:
+ virtual void OnLayerAnimationEnded(
+ const ui::LayerAnimationSequence* animation) OVERRIDE;
+ virtual void OnLayerAnimationScheduled(
+ const ui::LayerAnimationSequence* animation) OVERRIDE;
+ virtual void OnLayerAnimationAborted(
+ const ui::LayerAnimationSequence* animation) OVERRIDE;
+
ObserverList<Observer> observers_;
DesktopType type_;
Widget* widget_;
« no previous file with comments | « ui/gfx/compositor/screen_rotation.cc ('k') | views/desktop/desktop_window_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698