| 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; |
| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 139 |
| 139 // Overridden from ui::CompositorDelegate | 140 // Overridden from ui::CompositorDelegate |
| 140 virtual void ScheduleDraw(); | 141 virtual void ScheduleDraw(); |
| 141 | 142 |
| 142 // Overridden from Window: | 143 // Overridden from Window: |
| 143 virtual bool CanFocus() const OVERRIDE; | 144 virtual bool CanFocus() const OVERRIDE; |
| 144 virtual internal::FocusManager* GetFocusManager() OVERRIDE; | 145 virtual internal::FocusManager* GetFocusManager() OVERRIDE; |
| 145 virtual Desktop* GetDesktop() OVERRIDE; | 146 virtual Desktop* GetDesktop() OVERRIDE; |
| 146 | 147 |
| 147 // Overridden from ui::LayerDelegate: | 148 // Overridden from ui::LayerDelegate: |
| 148 virtual void OnLayerAnimationEnded(const ui::Animation* animation) OVERRIDE; | 149 virtual void OnLayerAnimationEnded( |
| 150 const ui::LayerAnimationSequence* animation) OVERRIDE; |
| 149 | 151 |
| 150 // Overridden from FocusManager: | 152 // Overridden from FocusManager: |
| 151 virtual void SetFocusedWindow(Window* window) OVERRIDE; | 153 virtual void SetFocusedWindow(Window* window) OVERRIDE; |
| 152 virtual Window* GetFocusedWindow() OVERRIDE; | 154 virtual Window* GetFocusedWindow() OVERRIDE; |
| 153 virtual bool IsFocusedWindow(const Window* window) const OVERRIDE; | 155 virtual bool IsFocusedWindow(const Window* window) const OVERRIDE; |
| 154 | 156 |
| 155 // Initializes the desktop. | 157 // Initializes the desktop. |
| 156 void Init(); | 158 void Init(); |
| 157 | 159 |
| 158 // Parses the switch describing the initial size for the host window and | 160 // Parses the switch describing the initial size for the host window and |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 Window* mouse_moved_handler_; | 196 Window* mouse_moved_handler_; |
| 195 Window* focused_window_; | 197 Window* focused_window_; |
| 196 Window* touch_event_handler_; | 198 Window* touch_event_handler_; |
| 197 | 199 |
| 198 DISALLOW_COPY_AND_ASSIGN(Desktop); | 200 DISALLOW_COPY_AND_ASSIGN(Desktop); |
| 199 }; | 201 }; |
| 200 | 202 |
| 201 } // namespace aura | 203 } // namespace aura |
| 202 | 204 |
| 203 #endif // UI_AURA_DESKTOP_H_ | 205 #endif // UI_AURA_DESKTOP_H_ |
| OLD | NEW |