| OLD | NEW |
| 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; | |
| 29 class Transform; | 28 class Transform; |
| 30 } | 29 } |
| 31 | 30 |
| 32 namespace aura { | 31 namespace aura { |
| 33 | 32 |
| 34 class DesktopDelegate; | 33 class DesktopDelegate; |
| 35 class DesktopHost; | 34 class DesktopHost; |
| 36 class DesktopObserver; | 35 class DesktopObserver; |
| 37 class KeyEvent; | 36 class KeyEvent; |
| 38 class MouseEvent; | 37 class MouseEvent; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 | 139 |
| 141 // Overridden from ui::CompositorDelegate | 140 // Overridden from ui::CompositorDelegate |
| 142 virtual void ScheduleDraw(); | 141 virtual void ScheduleDraw(); |
| 143 | 142 |
| 144 // Overridden from Window: | 143 // Overridden from Window: |
| 145 virtual bool CanFocus() const OVERRIDE; | 144 virtual bool CanFocus() const OVERRIDE; |
| 146 virtual internal::FocusManager* GetFocusManager() OVERRIDE; | 145 virtual internal::FocusManager* GetFocusManager() OVERRIDE; |
| 147 virtual Desktop* GetDesktop() OVERRIDE; | 146 virtual Desktop* GetDesktop() OVERRIDE; |
| 148 | 147 |
| 149 // Overridden from ui::LayerDelegate: | 148 // Overridden from ui::LayerDelegate: |
| 150 virtual void OnLayerAnimationEnded( | 149 virtual void OnLayerAnimationEnded(const ui::Animation* animation) OVERRIDE; |
| 151 const ui::LayerAnimationSequence* animation) OVERRIDE; | |
| 152 | 150 |
| 153 // Overridden from FocusManager: | 151 // Overridden from FocusManager: |
| 154 virtual void SetFocusedWindow(Window* window) OVERRIDE; | 152 virtual void SetFocusedWindow(Window* window) OVERRIDE; |
| 155 virtual Window* GetFocusedWindow() OVERRIDE; | 153 virtual Window* GetFocusedWindow() OVERRIDE; |
| 156 virtual bool IsFocusedWindow(const Window* window) const OVERRIDE; | 154 virtual bool IsFocusedWindow(const Window* window) const OVERRIDE; |
| 157 | 155 |
| 158 // Initializes the desktop. | 156 // Initializes the desktop. |
| 159 void Init(); | 157 void Init(); |
| 160 | 158 |
| 161 // Parses the switch describing the initial size for the host window and | 159 // Parses the switch describing the initial size for the host window and |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 Window* mouse_moved_handler_; | 197 Window* mouse_moved_handler_; |
| 200 Window* focused_window_; | 198 Window* focused_window_; |
| 201 Window* touch_event_handler_; | 199 Window* touch_event_handler_; |
| 202 | 200 |
| 203 DISALLOW_COPY_AND_ASSIGN(Desktop); | 201 DISALLOW_COPY_AND_ASSIGN(Desktop); |
| 204 }; | 202 }; |
| 205 | 203 |
| 206 } // namespace aura | 204 } // namespace aura |
| 207 | 205 |
| 208 #endif // UI_AURA_DESKTOP_H_ | 206 #endif // UI_AURA_DESKTOP_H_ |
| OLD | NEW |