OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_VIEWS_CHROME_BROWSER_MAIN_EXTRA_PARTS_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_BROWSER_MAIN_EXTRA_PARTS_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_BROWSER_MAIN_EXTRA_PARTS_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_BROWSER_MAIN_EXTRA_PARTS_VIEWS_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 ui { | 13 namespace ui { |
14 class InputDeviceClient; | 14 class InputDeviceClient; |
15 } | 15 } |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 class ViewsDelegate; | 18 class ViewsDelegate; |
19 class WindowManagerConnection; | |
20 } | 19 } |
21 | 20 |
22 #if defined(USE_AURA) | 21 #if defined(USE_AURA) |
23 namespace wm { | 22 namespace wm { |
24 class WMState; | 23 class WMState; |
25 } | 24 } |
26 #endif | 25 #endif |
27 | 26 |
28 class ChromeBrowserMainExtraPartsViews : public ChromeBrowserMainExtraParts { | 27 class ChromeBrowserMainExtraPartsViews : public ChromeBrowserMainExtraParts { |
29 public: | 28 public: |
30 ChromeBrowserMainExtraPartsViews(); | 29 ChromeBrowserMainExtraPartsViews(); |
31 ~ChromeBrowserMainExtraPartsViews() override; | 30 ~ChromeBrowserMainExtraPartsViews() override; |
32 | 31 |
33 // Overridden from ChromeBrowserMainExtraParts: | 32 // Overridden from ChromeBrowserMainExtraParts: |
34 void ToolkitInitialized() override; | 33 void ToolkitInitialized() override; |
35 void PreCreateThreads() override; | 34 void PreCreateThreads() override; |
36 void PreProfileInit() override; | 35 void PreProfileInit() override; |
37 | 36 |
38 private: | 37 private: |
39 std::unique_ptr<views::ViewsDelegate> views_delegate_; | 38 std::unique_ptr<views::ViewsDelegate> views_delegate_; |
40 | 39 |
41 #if defined(USE_AURA) | 40 #if defined(USE_AURA) |
42 std::unique_ptr<wm::WMState> wm_state_; | 41 std::unique_ptr<wm::WMState> wm_state_; |
43 std::unique_ptr<views::WindowManagerConnection> window_manager_connection_; | |
44 | 42 |
45 // Subscribes to updates about input-devices. | 43 // Subscribes to updates about input-devices. |
46 std::unique_ptr<ui::InputDeviceClient> input_device_client_; | 44 std::unique_ptr<ui::InputDeviceClient> input_device_client_; |
47 #endif | 45 #endif |
48 | 46 |
49 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsViews); | 47 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsViews); |
50 }; | 48 }; |
51 | 49 |
52 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_BROWSER_MAIN_EXTRA_PARTS_VIEWS_H_ | 50 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_BROWSER_MAIN_EXTRA_PARTS_VIEWS_H_ |
OLD | NEW |