| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_ | 5 #ifndef HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_ |
| 6 #define HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_ | 6 #define HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_ |
| 7 | 7 |
| 8 #if defined(USE_AURA) | 8 #if defined(USE_AURA) |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 void ShowImpl() override; | 41 void ShowImpl() override; |
| 42 void HideImpl() override; | 42 void HideImpl() override; |
| 43 gfx::Rect GetBoundsInPixels() const override; | 43 gfx::Rect GetBoundsInPixels() const override; |
| 44 void SetBoundsInPixels(const gfx::Rect& bounds) override; | 44 void SetBoundsInPixels(const gfx::Rect& bounds) override; |
| 45 gfx::Point GetLocationOnScreenInPixels() const override; | 45 gfx::Point GetLocationOnScreenInPixels() const override; |
| 46 void SetCapture() override; | 46 void SetCapture() override; |
| 47 void ReleaseCapture() override; | 47 void ReleaseCapture() override; |
| 48 void SetCursorNative(gfx::NativeCursor cursor_type) override; | 48 void SetCursorNative(gfx::NativeCursor cursor_type) override; |
| 49 void MoveCursorToScreenLocationInPixels(const gfx::Point& location) override; | 49 void MoveCursorToScreenLocationInPixels(const gfx::Point& location) override; |
| 50 void OnCursorVisibilityChangedNative(bool show) override; | 50 void OnCursorVisibilityChangedNative(bool show) override; |
| 51 gfx::ICCProfile GetICCProfileForCurrentDisplay() override; | |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 gfx::Rect bounds_; | 53 gfx::Rect bounds_; |
| 55 std::unique_ptr<aura::client::FocusClient> focus_client_; | 54 std::unique_ptr<aura::client::FocusClient> focus_client_; |
| 56 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_; | 55 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_; |
| 57 | 56 |
| 58 DISALLOW_COPY_AND_ASSIGN(HeadlessWindowTreeHost); | 57 DISALLOW_COPY_AND_ASSIGN(HeadlessWindowTreeHost); |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 } // namespace headless | 60 } // namespace headless |
| 62 | 61 |
| 63 #else // defined(USE_AURA) | 62 #else // defined(USE_AURA) |
| 64 class HeadlessWindowTreeHost {}; | 63 class HeadlessWindowTreeHost {}; |
| 65 #endif // defined(USE_AURA) | 64 #endif // defined(USE_AURA) |
| 66 | 65 |
| 67 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_ | 66 #endif // HEADLESS_LIB_BROWSER_HEADLESS_WINDOW_TREE_HOST_H_ |
| OLD | NEW |