blob: d6c19ca1487429b1ce70315913de6902f7b1e409 [file] [log] [blame]
[email protected]4a017032014-01-24 17:40:581// Copyright 2014 The Chromium Authors. All rights reserved.
[email protected]a896e1e2013-10-20 19:10:302// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]a6591142014-01-27 19:32:265#ifndef CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_
6#define CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_
[email protected]a896e1e2013-10-20 19:10:307
dcheng6003e0b2016-04-09 18:42:348#include <memory>
9
avi66a07722015-12-25 23:38:1210#include "base/macros.h"
Peter Kastingdd3a8f542020-04-17 05:21:0911#include "build/build_config.h"
[email protected]2f2620332014-02-28 10:07:3812#include "ui/aura/window_tree_host.h"
[email protected]a896e1e2013-10-20 19:10:3013
14namespace aura {
15namespace client {
[email protected]a896e1e2013-10-20 19:10:3016class DefaultCaptureClient;
17class FocusClient;
sky28f20d62016-10-20 23:21:5918class WindowParentingClient;
[email protected]a896e1e2013-10-20 19:10:3019}
[email protected]a896e1e2013-10-20 19:10:3020}
21
Peter Kastingdd3a8f542020-04-17 05:21:0922#if defined(USE_OZONE)
Sergey Ulanov98851152018-08-14 01:49:1623namespace display {
24class Screen;
25}
Peter Kastingdd3a8f542020-04-17 05:21:0926#endif
Sergey Ulanov98851152018-08-14 01:49:1627
[email protected]a6591142014-01-27 19:32:2628namespace gfx {
29class Size;
30}
31
[email protected]a896e1e2013-10-20 19:10:3032namespace content {
33
[email protected]a6591142014-01-27 19:32:2634class ShellPlatformDataAura {
[email protected]a896e1e2013-10-20 19:10:3035 public:
[email protected]a6591142014-01-27 19:32:2636 explicit ShellPlatformDataAura(const gfx::Size& initial_size);
37 ~ShellPlatformDataAura();
[email protected]a896e1e2013-10-20 19:10:3038
[email protected]a6591142014-01-27 19:32:2639 void ShowWindow();
40 void ResizeWindow(const gfx::Size& size);
[email protected]a896e1e2013-10-20 19:10:3041
[email protected]a06955222014-03-10 22:47:3242 aura::WindowTreeHost* host() { return host_.get(); }
[email protected]a896e1e2013-10-20 19:10:3043
44 private:
Peter Kastingdd3a8f542020-04-17 05:21:0945#if defined(USE_OZONE)
Sergey Ulanov98851152018-08-14 01:49:1646 std::unique_ptr<display::Screen> screen_;
Peter Kastingdd3a8f542020-04-17 05:21:0947#endif
Sergey Ulanov98851152018-08-14 01:49:1648
dcheng6003e0b2016-04-09 18:42:3449 std::unique_ptr<aura::WindowTreeHost> host_;
50 std::unique_ptr<aura::client::FocusClient> focus_client_;
51 std::unique_ptr<aura::client::DefaultCaptureClient> capture_client_;
sky28f20d62016-10-20 23:21:5952 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_;
[email protected]a896e1e2013-10-20 19:10:3053
[email protected]a6591142014-01-27 19:32:2654 DISALLOW_COPY_AND_ASSIGN(ShellPlatformDataAura);
[email protected]a896e1e2013-10-20 19:10:3055};
56
57} // namespace content
58
[email protected]a6591142014-01-27 19:32:2659#endif // CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_