| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/event_types.h" | 11 #include "base/event_types.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 14 #include "cc/surfaces/frame_sink_id.h" | 14 #include "cc/surfaces/frame_sink_id.h" |
| 15 #include "ui/aura/aura_export.h" | 15 #include "ui/aura/aura_export.h" |
| 16 #include "ui/base/cursor/cursor.h" | 16 #include "ui/base/cursor/cursor.h" |
| 17 #include "ui/base/ime/input_method_delegate.h" | 17 #include "ui/base/ime/input_method_delegate.h" |
| 18 #include "ui/events/event_source.h" | 18 #include "ui/events/event_source.h" |
| 19 #include "ui/gfx/geometry/insets.h" | 19 #include "ui/gfx/geometry/insets.h" |
| 20 #include "ui/gfx/native_widget_types.h" | 20 #include "ui/gfx/native_widget_types.h" |
| 21 | 21 |
| 22 namespace gfx { | 22 namespace gfx { |
| 23 class ICCProfile; | |
| 24 class Insets; | 23 class Insets; |
| 25 class Point; | 24 class Point; |
| 26 class Rect; | 25 class Rect; |
| 27 class Size; | 26 class Size; |
| 28 class Transform; | 27 class Transform; |
| 29 } | 28 } |
| 30 | 29 |
| 31 namespace ui { | 30 namespace ui { |
| 32 class Compositor; | 31 class Compositor; |
| 33 class EventSink; | 32 class EventSink; |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 217 |
| 219 // Called when the cursor visibility has changed. | 218 // Called when the cursor visibility has changed. |
| 220 virtual void OnCursorVisibilityChangedNative(bool show) = 0; | 219 virtual void OnCursorVisibilityChangedNative(bool show) = 0; |
| 221 | 220 |
| 222 // Shows the WindowTreeHost. | 221 // Shows the WindowTreeHost. |
| 223 virtual void ShowImpl() = 0; | 222 virtual void ShowImpl() = 0; |
| 224 | 223 |
| 225 // Hides the WindowTreeHost. | 224 // Hides the WindowTreeHost. |
| 226 virtual void HideImpl() = 0; | 225 virtual void HideImpl() = 0; |
| 227 | 226 |
| 228 virtual gfx::ICCProfile GetICCProfileForCurrentDisplay(); | |
| 229 | |
| 230 // Overridden from ui::EventSource: | 227 // Overridden from ui::EventSource: |
| 231 ui::EventSink* GetEventSink() override; | 228 ui::EventSink* GetEventSink() override; |
| 232 | 229 |
| 233 private: | 230 private: |
| 234 friend class test::WindowTreeHostTestApi; | 231 friend class test::WindowTreeHostTestApi; |
| 235 | 232 |
| 236 // Moves the cursor to the specified location. This method is internally used | 233 // Moves the cursor to the specified location. This method is internally used |
| 237 // by MoveCursorToLocationInDIP() and MoveCursorToLocationInPixels(). | 234 // by MoveCursorToLocationInDIP() and MoveCursorToLocationInPixels(). |
| 238 void MoveCursorToInternal(const gfx::Point& root_location, | 235 void MoveCursorToInternal(const gfx::Point& root_location, |
| 239 const gfx::Point& host_location); | 236 const gfx::Point& host_location); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 265 bool owned_input_method_; | 262 bool owned_input_method_; |
| 266 | 263 |
| 267 gfx::Insets output_surface_padding_in_pixels_; | 264 gfx::Insets output_surface_padding_in_pixels_; |
| 268 | 265 |
| 269 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); | 266 DISALLOW_COPY_AND_ASSIGN(WindowTreeHost); |
| 270 }; | 267 }; |
| 271 | 268 |
| 272 } // namespace aura | 269 } // namespace aura |
| 273 | 270 |
| 274 #endif // UI_AURA_WINDOW_TREE_HOST_H_ | 271 #endif // UI_AURA_WINDOW_TREE_HOST_H_ |
| OLD | NEW |