| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WINDOW_TREE_HOST_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_H_ |
| 6 #define UI_AURA_WINDOW_TREE_HOST_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/event_types.h" | 10 #include "base/event_types.h" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/message_loop/message_loop.h" | 12 #include "base/message_loop/message_loop.h" |
| 13 #include "ui/aura/aura_export.h" | 13 #include "ui/aura/aura_export.h" |
| 14 #include "ui/base/cursor/cursor.h" | 14 #include "ui/base/cursor/cursor.h" |
| 15 #include "ui/base/ime/input_method_delegate.h" | 15 #include "ui/base/ime/input_method_delegate.h" |
| 16 #include "ui/events/event_source.h" | 16 #include "ui/events/event_source.h" |
| 17 #include "ui/gfx/geometry/insets.h" | 17 #include "ui/gfx/geometry/insets.h" |
| 18 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
| 19 | 19 |
| 20 namespace gfx { | 20 namespace gfx { |
| 21 class ICCProfile; |
| 21 class Insets; | 22 class Insets; |
| 22 class Point; | 23 class Point; |
| 23 class Rect; | 24 class Rect; |
| 24 class Size; | 25 class Size; |
| 25 class Transform; | 26 class Transform; |
| 26 } | 27 } |
| 27 | 28 |
| 28 namespace ui { | 29 namespace ui { |
| 29 class Compositor; | 30 class Compositor; |
| 30 class EventProcessor; | 31 class EventProcessor; |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 208 |
| 208 // kCalled when the cursor visibility has changed. | 209 // kCalled when the cursor visibility has changed. |
| 209 virtual void OnCursorVisibilityChangedNative(bool show) = 0; | 210 virtual void OnCursorVisibilityChangedNative(bool show) = 0; |
| 210 | 211 |
| 211 // Shows the WindowTreeHost. | 212 // Shows the WindowTreeHost. |
| 212 virtual void ShowImpl() = 0; | 213 virtual void ShowImpl() = 0; |
| 213 | 214 |
| 214 // Hides the WindowTreeHost. | 215 // Hides the WindowTreeHost. |
| 215 virtual void HideImpl() = 0; | 216 virtual void HideImpl() = 0; |
| 216 | 217 |
| 218 virtual gfx::ICCProfile GetICCProfileForCurrentDisplay(); |
| 219 |
| 217 // Overridden from ui::EventSource: | 220 // Overridden from ui::EventSource: |
| 218 ui::EventProcessor* GetEventProcessor() override; | 221 ui::EventProcessor* GetEventProcessor() override; |
| 219 | 222 |
| 220 private: | 223 private: |
| 221 friend class test::WindowTreeHostTestApi; | 224 friend class test::WindowTreeHostTestApi; |
| 222 | 225 |
| 223 // Moves the cursor to the specified location. This method is internally used | 226 // Moves the cursor to the specified location. This method is internally used |
| 224 // by MoveCursorTo() and MoveCursorToHostLocation(). | 227 // by MoveCursorTo() and MoveCursorToHostLocation(). |
| 225 void MoveCursorToInternal(const gfx::Point& root_location, | 228 void MoveCursorToInternal(const gfx::Point& root_location, |
| 226 const gfx::Point& host_location); | 229 const gfx::Point& host_location); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 252 bool owned_input_method_; | 255 bool owned_input_method_; |
| 253 | 256 |
| 254 gfx::Insets output_surface_padding_; | 257 gfx::Insets output_surface_padding_; |
| 255 | 258 |
| 256 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 259 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| 257 }; | 260 }; |
| 258 | 261 |
| 259 } // namespace aura | 262 } // namespace aura |
| 260 | 263 |
| 261 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 264 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
| OLD | NEW |