Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1337)

Side by Side Diff: chrome/browser/ui/ash/chrome_shell_delegate.h

Issue 2052013002: Adding ChromeLauncherController interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome_launcher_smaller_api
Patch Set: Rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_ASH_CHROME_SHELL_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_
6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "ash/shell_delegate.h" 11 #include "ash/shell_delegate.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "build/build_config.h" 14 #include "build/build_config.h"
15 #include "chrome/browser/ui/ash/metrics/chrome_user_metrics_recorder.h" 15 #include "chrome/browser/ui/ash/metrics/chrome_user_metrics_recorder.h"
16 #include "content/public/browser/notification_observer.h" 16 #include "content/public/browser/notification_observer.h"
17 #include "content/public/browser/notification_registrar.h" 17 #include "content/public/browser/notification_registrar.h"
18 18
19 namespace chromeos { 19 namespace chromeos {
20 class DisplayConfigurationObserver; 20 class DisplayConfigurationObserver;
21 } 21 }
22 22
23 namespace keyboard { 23 namespace keyboard {
24 class KeyboardUI; 24 class KeyboardUI;
25 } 25 }
26 26
27 class ChromeLauncherController; 27 class ChromeLauncherControllerImpl;
28 28
29 class ChromeShellDelegate : public ash::ShellDelegate, 29 class ChromeShellDelegate : public ash::ShellDelegate,
30 public content::NotificationObserver { 30 public content::NotificationObserver {
31 public: 31 public:
32 ChromeShellDelegate(); 32 ChromeShellDelegate();
33 ~ChromeShellDelegate() override; 33 ~ChromeShellDelegate() override;
34 34
35 // ash::ShellDelegate overrides; 35 // ash::ShellDelegate overrides;
36 bool IsFirstRunAfterBoot() const override; 36 bool IsFirstRunAfterBoot() const override;
37 bool IsMultiProfilesEnabled() const override; 37 bool IsMultiProfilesEnabled() const override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // content::NotificationObserver override: 72 // content::NotificationObserver override:
73 void Observe(int type, 73 void Observe(int type,
74 const content::NotificationSource& source, 74 const content::NotificationSource& source,
75 const content::NotificationDetails& details) override; 75 const content::NotificationDetails& details) override;
76 76
77 private: 77 private:
78 void PlatformInit(); 78 void PlatformInit();
79 79
80 content::NotificationRegistrar registrar_; 80 content::NotificationRegistrar registrar_;
81 81
82 ChromeLauncherController* shelf_delegate_; 82 ChromeLauncherControllerImpl* shelf_delegate_;
83 83
84 base::ObserverList<ash::VirtualKeyboardStateObserver> 84 base::ObserverList<ash::VirtualKeyboardStateObserver>
85 keyboard_state_observer_list_; 85 keyboard_state_observer_list_;
86 86
87 // Proxies events from chrome/browser to ash::UserMetricsRecorder. 87 // Proxies events from chrome/browser to ash::UserMetricsRecorder.
88 std::unique_ptr<ChromeUserMetricsRecorder> chrome_user_metrics_recorder_; 88 std::unique_ptr<ChromeUserMetricsRecorder> chrome_user_metrics_recorder_;
89 89
90 std::unique_ptr<chromeos::DisplayConfigurationObserver> 90 std::unique_ptr<chromeos::DisplayConfigurationObserver>
91 display_configuration_observer_; 91 display_configuration_observer_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate); 93 DISALLOW_COPY_AND_ASSIGN(ChromeShellDelegate);
94 }; 94 };
95 95
96 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_ 96 #endif // CHROME_BROWSER_UI_ASH_CHROME_SHELL_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/app_list/app_list_service_ash.cc ('k') | chrome/browser/ui/ash/chrome_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698