[email protected] | 4a01703 | 2014-01-24 17:40:58 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | a659114 | 2014-01-27 19:32:26 | [diff] [blame] | 5 | #ifndef CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ |
6 | #define CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ | ||||
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 7 | |
dcheng | 6003e0b | 2016-04-09 18:42:34 | [diff] [blame] | 8 | #include <memory> |
9 | |||||
avi | 66a0772 | 2015-12-25 23:38:12 | [diff] [blame] | 10 | #include "base/macros.h" |
Peter Kasting | dd3a8f54 | 2020-04-17 05:21:09 | [diff] [blame] | 11 | #include "build/build_config.h" |
[email protected] | 2f262033 | 2014-02-28 10:07:38 | [diff] [blame] | 12 | #include "ui/aura/window_tree_host.h" |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 13 | |
14 | namespace aura { | ||||
15 | namespace client { | ||||
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 16 | class DefaultCaptureClient; |
17 | class FocusClient; | ||||
sky | 28f20d6 | 2016-10-20 23:21:59 | [diff] [blame] | 18 | class WindowParentingClient; |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 19 | } |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 20 | } |
21 | |||||
Peter Kasting | dd3a8f54 | 2020-04-17 05:21:09 | [diff] [blame] | 22 | #if defined(USE_OZONE) |
Sergey Ulanov | 9885115 | 2018-08-14 01:49:16 | [diff] [blame] | 23 | namespace display { |
24 | class Screen; | ||||
25 | } | ||||
Peter Kasting | dd3a8f54 | 2020-04-17 05:21:09 | [diff] [blame] | 26 | #endif |
Sergey Ulanov | 9885115 | 2018-08-14 01:49:16 | [diff] [blame] | 27 | |
[email protected] | a659114 | 2014-01-27 19:32:26 | [diff] [blame] | 28 | namespace gfx { |
29 | class Size; | ||||
30 | } | ||||
31 | |||||
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 32 | namespace content { |
33 | |||||
[email protected] | a659114 | 2014-01-27 19:32:26 | [diff] [blame] | 34 | class ShellPlatformDataAura { |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 35 | public: |
[email protected] | a659114 | 2014-01-27 19:32:26 | [diff] [blame] | 36 | explicit ShellPlatformDataAura(const gfx::Size& initial_size); |
37 | ~ShellPlatformDataAura(); | ||||
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 38 | |
[email protected] | a659114 | 2014-01-27 19:32:26 | [diff] [blame] | 39 | void ShowWindow(); |
40 | void ResizeWindow(const gfx::Size& size); | ||||
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 41 | |
[email protected] | a0695522 | 2014-03-10 22:47:32 | [diff] [blame] | 42 | aura::WindowTreeHost* host() { return host_.get(); } |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 43 | |
44 | private: | ||||
Peter Kasting | dd3a8f54 | 2020-04-17 05:21:09 | [diff] [blame] | 45 | #if defined(USE_OZONE) |
Sergey Ulanov | 9885115 | 2018-08-14 01:49:16 | [diff] [blame] | 46 | std::unique_ptr<display::Screen> screen_; |
Peter Kasting | dd3a8f54 | 2020-04-17 05:21:09 | [diff] [blame] | 47 | #endif |
Sergey Ulanov | 9885115 | 2018-08-14 01:49:16 | [diff] [blame] | 48 | |
dcheng | 6003e0b | 2016-04-09 18:42:34 | [diff] [blame] | 49 | std::unique_ptr<aura::WindowTreeHost> host_; |
50 | std::unique_ptr<aura::client::FocusClient> focus_client_; | ||||
51 | std::unique_ptr<aura::client::DefaultCaptureClient> capture_client_; | ||||
sky | 28f20d6 | 2016-10-20 23:21:59 | [diff] [blame] | 52 | std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_; |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 53 | |
[email protected] | a659114 | 2014-01-27 19:32:26 | [diff] [blame] | 54 | DISALLOW_COPY_AND_ASSIGN(ShellPlatformDataAura); |
[email protected] | a896e1e | 2013-10-20 19:10:30 | [diff] [blame] | 55 | }; |
56 | |||||
57 | } // namespace content | ||||
58 | |||||
[email protected] | a659114 | 2014-01-27 19:32:26 | [diff] [blame] | 59 | #endif // CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ |