OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ | 5 #ifndef CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ |
6 #define CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ | 6 #define CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 AppShimFocusType focus_type, | 122 AppShimFocusType focus_type, |
123 const std::vector<base::FilePath>& files) override; | 123 const std::vector<base::FilePath>& files) override; |
124 void OnShimSetHidden(Host* host, bool hidden) override; | 124 void OnShimSetHidden(Host* host, bool hidden) override; |
125 void OnShimQuit(Host* host) override; | 125 void OnShimQuit(Host* host) override; |
126 | 126 |
127 // AppLifetimeMonitor::Observer overrides: | 127 // AppLifetimeMonitor::Observer overrides: |
128 void OnAppStart(Profile* profile, const std::string& app_id) override; | 128 void OnAppStart(Profile* profile, const std::string& app_id) override; |
129 void OnAppActivated(Profile* profile, const std::string& app_id) override; | 129 void OnAppActivated(Profile* profile, const std::string& app_id) override; |
130 void OnAppDeactivated(Profile* profile, const std::string& app_id) override; | 130 void OnAppDeactivated(Profile* profile, const std::string& app_id) override; |
131 void OnAppStop(Profile* profile, const std::string& app_id) override; | 131 void OnAppStop(Profile* profile, const std::string& app_id) override; |
132 void OnChromeTerminating() override; | |
133 | 132 |
134 // content::NotificationObserver overrides: | 133 // content::NotificationObserver overrides: |
135 void Observe(int type, | 134 void Observe(int type, |
136 const content::NotificationSource& source, | 135 const content::NotificationSource& source, |
137 const content::NotificationDetails& details) override; | 136 const content::NotificationDetails& details) override; |
138 | 137 |
139 // chrome::BrowserListObserver overrides; | 138 // chrome::BrowserListObserver overrides; |
140 void OnBrowserAdded(Browser* browser) override; | 139 void OnBrowserAdded(Browser* browser) override; |
141 void OnBrowserRemoved(Browser* browser) override; | 140 void OnBrowserRemoved(Browser* browser) override; |
142 | 141 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 content::NotificationRegistrar registrar_; | 188 content::NotificationRegistrar registrar_; |
190 | 189 |
191 base::WeakPtrFactory<ExtensionAppShimHandler> weak_factory_; | 190 base::WeakPtrFactory<ExtensionAppShimHandler> weak_factory_; |
192 | 191 |
193 DISALLOW_COPY_AND_ASSIGN(ExtensionAppShimHandler); | 192 DISALLOW_COPY_AND_ASSIGN(ExtensionAppShimHandler); |
194 }; | 193 }; |
195 | 194 |
196 } // namespace apps | 195 } // namespace apps |
197 | 196 |
198 #endif // CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ | 197 #endif // CHROME_BROWSER_APPS_APP_SHIM_EXTENSION_APP_SHIM_HANDLER_MAC_H_ |
OLD | NEW |