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 CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 bool CheckMediaAccessPermission( | 55 bool CheckMediaAccessPermission( |
56 content::WebContents* web_contents, | 56 content::WebContents* web_contents, |
57 const GURL& security_origin, | 57 const GURL& security_origin, |
58 content::MediaStreamType type, | 58 content::MediaStreamType type, |
59 const extensions::Extension* extension) override; | 59 const extensions::Extension* extension) override; |
60 int PreferredIconSize() override; | 60 int PreferredIconSize() override; |
61 void SetWebContentsBlocked(content::WebContents* web_contents, | 61 void SetWebContentsBlocked(content::WebContents* web_contents, |
62 bool blocked) override; | 62 bool blocked) override; |
63 bool IsWebContentsVisible(content::WebContents* web_contents) override; | 63 bool IsWebContentsVisible(content::WebContents* web_contents) override; |
64 void SetTerminatingCallback(const base::Closure& callback) override; | 64 void SetTerminatingCallback(const base::Closure& callback) override; |
| 65 void OnHide() override; |
| 66 void OnShow() override; |
65 | 67 |
66 // content::NotificationObserver: | 68 // content::NotificationObserver: |
67 void Observe(int type, | 69 void Observe(int type, |
68 const content::NotificationSource& source, | 70 const content::NotificationSource& source, |
69 const content::NotificationDetails& details) override; | 71 const content::NotificationDetails& details) override; |
70 | 72 |
71 scoped_ptr<ScopedKeepAlive> keep_alive_; | 73 scoped_ptr<ScopedKeepAlive> keep_alive_; |
72 scoped_ptr<NewWindowContentsDelegate> new_window_contents_delegate_; | 74 scoped_ptr<NewWindowContentsDelegate> new_window_contents_delegate_; |
73 base::Closure terminating_callback_; | 75 base::Closure terminating_callback_; |
74 content::NotificationRegistrar registrar_; | 76 content::NotificationRegistrar registrar_; |
75 | 77 |
76 DISALLOW_COPY_AND_ASSIGN(ChromeAppDelegate); | 78 DISALLOW_COPY_AND_ASSIGN(ChromeAppDelegate); |
77 }; | 79 }; |
78 | 80 |
79 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ | 81 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ |
OLD | NEW |