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