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_BROWSER_APP_WINDOW_APP_DELEGATE_H_ | 5 #ifndef EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ |
6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ | 6 #define EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
9 #include "content/public/common/media_stream_request.h" | 9 #include "content/public/common/media_stream_request.h" |
10 #include "third_party/skia/include/core/SkColor.h" | 10 #include "third_party/skia/include/core/SkColor.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 const Extension* extension) = 0; | 71 const Extension* extension) = 0; |
72 virtual int PreferredIconSize() = 0; | 72 virtual int PreferredIconSize() = 0; |
73 | 73 |
74 // Web contents modal dialog support. | 74 // Web contents modal dialog support. |
75 virtual void SetWebContentsBlocked(content::WebContents* web_contents, | 75 virtual void SetWebContentsBlocked(content::WebContents* web_contents, |
76 bool blocked) = 0; | 76 bool blocked) = 0; |
77 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; | 77 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; |
78 | 78 |
79 // |callback| will be called when the process is about to terminate. | 79 // |callback| will be called when the process is about to terminate. |
80 virtual void SetTerminatingCallback(const base::Closure& callback) = 0; | 80 virtual void SetTerminatingCallback(const base::Closure& callback) = 0; |
| 81 |
| 82 // Called when the app is hidden or shown. |
| 83 virtual void OnHide() = 0; |
| 84 virtual void OnShow() = 0; |
81 }; | 85 }; |
82 | 86 |
83 } // namespace extensions | 87 } // namespace extensions |
84 | 88 |
85 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ | 89 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ |
OLD | NEW |