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 EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ |
7 | 7 |
8 #include "extensions/browser/app_window/app_delegate.h" | 8 #include "extensions/browser/app_window/app_delegate.h" |
9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const Extension* extension) override; | 43 const Extension* extension) override; |
44 bool CheckMediaAccessPermission(content::WebContents* web_contents, | 44 bool CheckMediaAccessPermission(content::WebContents* web_contents, |
45 const GURL& security_origin, | 45 const GURL& security_origin, |
46 content::MediaStreamType type, | 46 content::MediaStreamType type, |
47 const Extension* extension) override; | 47 const Extension* extension) override; |
48 int PreferredIconSize() override; | 48 int PreferredIconSize() override; |
49 void SetWebContentsBlocked(content::WebContents* web_contents, | 49 void SetWebContentsBlocked(content::WebContents* web_contents, |
50 bool blocked) override; | 50 bool blocked) override; |
51 bool IsWebContentsVisible(content::WebContents* web_contents) override; | 51 bool IsWebContentsVisible(content::WebContents* web_contents) override; |
52 void SetTerminatingCallback(const base::Closure& callback) override; | 52 void SetTerminatingCallback(const base::Closure& callback) override; |
| 53 void OnHide() override {} |
| 54 void OnShow() override {} |
53 | 55 |
54 private: | 56 private: |
55 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate); | 57 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate); |
56 }; | 58 }; |
57 | 59 |
58 } // namespace extensions | 60 } // namespace extensions |
59 | 61 |
60 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ | 62 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ |
OLD | NEW |