| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ | 5 #ifndef CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ |
| 6 #define CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ | 6 #define CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/aura/window_tree_host.h" | 11 #include "ui/aura/window_tree_host.h" |
| 12 | 12 |
| 13 namespace aura { | 13 namespace aura { |
| 14 namespace client { | 14 namespace client { |
| 15 class DefaultCaptureClient; | 15 class DefaultCaptureClient; |
| 16 class FocusClient; | 16 class FocusClient; |
| 17 class WindowParentingClient; | 17 class WindowParentingClient; |
| 18 } | 18 } |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace gfx { | 21 namespace gfx { |
| 22 class Size; | 22 class Size; |
| 23 } | 23 } |
| 24 | 24 |
| 25 namespace ui { | |
| 26 class EventHandler; | |
| 27 } | |
| 28 | |
| 29 namespace content { | 25 namespace content { |
| 30 | 26 |
| 31 class ShellPlatformDataAura { | 27 class ShellPlatformDataAura { |
| 32 public: | 28 public: |
| 33 explicit ShellPlatformDataAura(const gfx::Size& initial_size); | 29 explicit ShellPlatformDataAura(const gfx::Size& initial_size); |
| 34 ~ShellPlatformDataAura(); | 30 ~ShellPlatformDataAura(); |
| 35 | 31 |
| 36 void ShowWindow(); | 32 void ShowWindow(); |
| 37 void ResizeWindow(const gfx::Size& size); | 33 void ResizeWindow(const gfx::Size& size); |
| 38 | 34 |
| 39 aura::WindowTreeHost* host() { return host_.get(); } | 35 aura::WindowTreeHost* host() { return host_.get(); } |
| 40 | 36 |
| 41 private: | 37 private: |
| 42 std::unique_ptr<aura::WindowTreeHost> host_; | 38 std::unique_ptr<aura::WindowTreeHost> host_; |
| 43 std::unique_ptr<aura::client::FocusClient> focus_client_; | 39 std::unique_ptr<aura::client::FocusClient> focus_client_; |
| 44 std::unique_ptr<aura::client::DefaultCaptureClient> capture_client_; | 40 std::unique_ptr<aura::client::DefaultCaptureClient> capture_client_; |
| 45 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_; | 41 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_; |
| 46 | 42 |
| 47 DISALLOW_COPY_AND_ASSIGN(ShellPlatformDataAura); | 43 DISALLOW_COPY_AND_ASSIGN(ShellPlatformDataAura); |
| 48 }; | 44 }; |
| 49 | 45 |
| 50 } // namespace content | 46 } // namespace content |
| 51 | 47 |
| 52 #endif // CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ | 48 #endif // CONTENT_SHELL_BROWSER_SHELL_PLATFORM_DATA_AURA_H_ |
| OLD | NEW |