| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_PLATFORM_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ |
| 6 #define UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public NON_EXPORTED_BASE(ui::PlatformWindowDelegate) { | 26 public NON_EXPORTED_BASE(ui::PlatformWindowDelegate) { |
| 27 public: | 27 public: |
| 28 explicit WindowTreeHostPlatform(const gfx::Rect& bounds); | 28 explicit WindowTreeHostPlatform(const gfx::Rect& bounds); |
| 29 ~WindowTreeHostPlatform() override; | 29 ~WindowTreeHostPlatform() override; |
| 30 | 30 |
| 31 // WindowTreeHost: | 31 // WindowTreeHost: |
| 32 ui::EventSource* GetEventSource() override; | 32 ui::EventSource* GetEventSource() override; |
| 33 gfx::AcceleratedWidget GetAcceleratedWidget() override; | 33 gfx::AcceleratedWidget GetAcceleratedWidget() override; |
| 34 void ShowImpl() override; | 34 void ShowImpl() override; |
| 35 void HideImpl() override; | 35 void HideImpl() override; |
| 36 gfx::Rect GetBounds() const override; | 36 gfx::Rect GetBoundsInPixels() const override; |
| 37 void SetBounds(const gfx::Rect& bounds) override; | 37 void SetBoundsInPixels(const gfx::Rect& bounds) override; |
| 38 gfx::Point GetLocationOnNativeScreen() const override; | 38 gfx::Point GetLocationOnNativeScreen() const override; |
| 39 void SetCapture() override; | 39 void SetCapture() override; |
| 40 void ReleaseCapture() override; | 40 void ReleaseCapture() override; |
| 41 void SetCursorNative(gfx::NativeCursor cursor) override; | 41 void SetCursorNative(gfx::NativeCursor cursor) override; |
| 42 void MoveCursorToNative(const gfx::Point& location) override; | 42 void MoveCursorToNative(const gfx::Point& location) override; |
| 43 void OnCursorVisibilityChangedNative(bool show) override; | 43 void OnCursorVisibilityChangedNative(bool show) override; |
| 44 | 44 |
| 45 protected: | 45 protected: |
| 46 // NOTE: neither of these calls CreateCompositor(); subclasses must call | 46 // NOTE: neither of these calls CreateCompositor(); subclasses must call |
| 47 // CreateCompositor() at the appropriate time. | 47 // CreateCompositor() at the appropriate time. |
| (...skipping 21 matching lines...) Expand all Loading... |
| 69 std::unique_ptr<ui::PlatformWindow> window_; | 69 std::unique_ptr<ui::PlatformWindow> window_; |
| 70 gfx::NativeCursor current_cursor_; | 70 gfx::NativeCursor current_cursor_; |
| 71 gfx::Rect bounds_; | 71 gfx::Rect bounds_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostPlatform); | 73 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostPlatform); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace aura | 76 } // namespace aura |
| 77 | 77 |
| 78 #endif // UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ | 78 #endif // UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ |
| OLD | NEW |