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

Side by Side Diff: ui/aura/desktop.h

Issue 8362006: Reland r107720 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/desktop.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_AURA_DESKTOP_H_ 5 #ifndef UI_AURA_DESKTOP_H_
6 #define UI_AURA_DESKTOP_H_ 6 #define UI_AURA_DESKTOP_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "ui/aura/aura_export.h" 14 #include "ui/aura/aura_export.h"
15 #include "ui/aura/cursor.h" 15 #include "ui/aura/cursor.h"
16 #include "ui/aura/focus_manager.h" 16 #include "ui/aura/focus_manager.h"
17 #include "ui/aura/window.h" 17 #include "ui/aura/window.h"
18 #include "ui/base/events.h" 18 #include "ui/base/events.h"
19 #include "ui/gfx/compositor/compositor.h" 19 #include "ui/gfx/compositor/compositor.h"
20 #include "ui/gfx/native_widget_types.h" 20 #include "ui/gfx/native_widget_types.h"
21 #include "ui/gfx/point.h" 21 #include "ui/gfx/point.h"
22 22
23 namespace gfx { 23 namespace gfx {
24 class Size; 24 class Size;
25 } 25 }
26 26
27 namespace ui { 27 namespace ui {
28 class LayerAnimationSequence;
28 class Transform; 29 class Transform;
29 } 30 }
30 31
31 namespace aura { 32 namespace aura {
32 33
33 class DesktopDelegate; 34 class DesktopDelegate;
34 class DesktopHost; 35 class DesktopHost;
35 class DesktopObserver; 36 class DesktopObserver;
36 class KeyEvent; 37 class KeyEvent;
37 class MouseEvent; 38 class MouseEvent;
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 // Overridden from ui::CompositorDelegate 141 // Overridden from ui::CompositorDelegate
141 virtual void ScheduleDraw(); 142 virtual void ScheduleDraw();
142 143
143 // Overridden from Window: 144 // Overridden from Window:
144 virtual bool CanFocus() const OVERRIDE; 145 virtual bool CanFocus() const OVERRIDE;
145 virtual internal::FocusManager* GetFocusManager() OVERRIDE; 146 virtual internal::FocusManager* GetFocusManager() OVERRIDE;
146 virtual Desktop* GetDesktop() OVERRIDE; 147 virtual Desktop* GetDesktop() OVERRIDE;
147 148
148 // Overridden from ui::LayerDelegate: 149 // Overridden from ui::LayerDelegate:
149 virtual void OnLayerAnimationEnded(const ui::Animation* animation) OVERRIDE; 150 virtual void OnLayerAnimationEnded(
151 const ui::LayerAnimationSequence* animation) OVERRIDE;
150 152
151 // Overridden from FocusManager: 153 // Overridden from FocusManager:
152 virtual void SetFocusedWindow(Window* window) OVERRIDE; 154 virtual void SetFocusedWindow(Window* window) OVERRIDE;
153 virtual Window* GetFocusedWindow() OVERRIDE; 155 virtual Window* GetFocusedWindow() OVERRIDE;
154 virtual bool IsFocusedWindow(const Window* window) const OVERRIDE; 156 virtual bool IsFocusedWindow(const Window* window) const OVERRIDE;
155 157
156 // Initializes the desktop. 158 // Initializes the desktop.
157 void Init(); 159 void Init();
158 160
159 // Parses the switch describing the initial size for the host window and 161 // Parses the switch describing the initial size for the host window and
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 Window* mouse_moved_handler_; 199 Window* mouse_moved_handler_;
198 Window* focused_window_; 200 Window* focused_window_;
199 Window* touch_event_handler_; 201 Window* touch_event_handler_;
200 202
201 DISALLOW_COPY_AND_ASSIGN(Desktop); 203 DISALLOW_COPY_AND_ASSIGN(Desktop);
202 }; 204 };
203 205
204 } // namespace aura 206 } // namespace aura
205 207
206 #endif // UI_AURA_DESKTOP_H_ 208 #endif // UI_AURA_DESKTOP_H_
OLDNEW
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/desktop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698