OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ | 5 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ |
6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ | 6 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "chrome/browser/chrome_browser_main_extra_parts.h" | 11 #include "chrome/browser/chrome_browser_main_extra_parts.h" |
12 | 12 |
13 namespace exo { | 13 namespace exo { |
14 class Display; | 14 class Display; |
15 class WMHelper; | 15 class WMHelper; |
16 namespace wayland { | 16 namespace wayland { |
17 class Server; | 17 class Server; |
18 } | 18 } |
19 } | 19 } |
20 | 20 |
21 namespace arc { | 21 namespace arc { |
22 class ArcNotificationSurfaceManager; | 22 class ArcNotificationSurfaceManagerImpl; |
23 } | 23 } |
24 | 24 |
25 class ChromeBrowserMainExtraPartsExo : public ChromeBrowserMainExtraParts { | 25 class ChromeBrowserMainExtraPartsExo : public ChromeBrowserMainExtraParts { |
26 public: | 26 public: |
27 ChromeBrowserMainExtraPartsExo(); | 27 ChromeBrowserMainExtraPartsExo(); |
28 ~ChromeBrowserMainExtraPartsExo() override; | 28 ~ChromeBrowserMainExtraPartsExo() override; |
29 | 29 |
30 // Overridden from ChromeBrowserMainExtraParts: | 30 // Overridden from ChromeBrowserMainExtraParts: |
31 void PreProfileInit() override; | 31 void PreProfileInit() override; |
32 void PostMainMessageLoopRun() override; | 32 void PostMainMessageLoopRun() override; |
33 | 33 |
34 private: | 34 private: |
35 std::unique_ptr<arc::ArcNotificationSurfaceManager> | 35 std::unique_ptr<arc::ArcNotificationSurfaceManagerImpl> |
hidehiko
2017/06/15 15:26:20
nit: unique_ptr<NotificationSurfaceManager> instea
yoshiki
2017/06/16 11:29:08
It's impossible. The dtor of NotificationSurfaceMa
| |
36 arc_notification_surface_manager_; | 36 arc_notification_surface_manager_; |
37 std::unique_ptr<exo::WMHelper> wm_helper_; | 37 std::unique_ptr<exo::WMHelper> wm_helper_; |
38 std::unique_ptr<exo::Display> display_; | 38 std::unique_ptr<exo::Display> display_; |
39 std::unique_ptr<exo::wayland::Server> wayland_server_; | 39 std::unique_ptr<exo::wayland::Server> wayland_server_; |
40 class WaylandWatcher; | 40 class WaylandWatcher; |
41 std::unique_ptr<WaylandWatcher> wayland_watcher_; | 41 std::unique_ptr<WaylandWatcher> wayland_watcher_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsExo); | 43 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsExo); |
44 }; | 44 }; |
45 | 45 |
46 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ | 46 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_EXTRA_PARTS_EXO_H_ |
OLD | NEW |