| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 const content::FileChooserParams& params) = 0; | 63 const content::FileChooserParams& params) = 0; |
| 64 virtual void RequestMediaAccessPermission( | 64 virtual void RequestMediaAccessPermission( |
| 65 content::WebContents* web_contents, | 65 content::WebContents* web_contents, |
| 66 const content::MediaStreamRequest& request, | 66 const content::MediaStreamRequest& request, |
| 67 const content::MediaResponseCallback& callback, | 67 const content::MediaResponseCallback& callback, |
| 68 const Extension* extension) = 0; | 68 const Extension* extension) = 0; |
| 69 virtual bool CheckMediaAccessPermission(content::WebContents* web_contents, | 69 virtual bool CheckMediaAccessPermission(content::WebContents* web_contents, |
| 70 const GURL& security_origin, | 70 const GURL& security_origin, |
| 71 content::MediaStreamType type, | 71 content::MediaStreamType type, |
| 72 const Extension* extension) = 0; | 72 const Extension* extension) = 0; |
| 73 virtual int PreferredIconSize() = 0; | 73 virtual int PreferredIconSize() const = 0; |
| 74 | 74 |
| 75 // Web contents modal dialog support. | 75 // Web contents modal dialog support. |
| 76 virtual void SetWebContentsBlocked(content::WebContents* web_contents, | 76 virtual void SetWebContentsBlocked(content::WebContents* web_contents, |
| 77 bool blocked) = 0; | 77 bool blocked) = 0; |
| 78 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; | 78 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; |
| 79 | 79 |
| 80 // |callback| will be called when the process is about to terminate. | 80 // |callback| will be called when the process is about to terminate. |
| 81 virtual void SetTerminatingCallback(const base::Closure& callback) = 0; | 81 virtual void SetTerminatingCallback(const base::Closure& callback) = 0; |
| 82 | 82 |
| 83 // Called when the app is hidden or shown. | 83 // Called when the app is hidden or shown. |
| 84 virtual void OnHide() = 0; | 84 virtual void OnHide() = 0; |
| 85 virtual void OnShow() = 0; | 85 virtual void OnShow() = 0; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace extensions | 88 } // namespace extensions |
| 89 | 89 |
| 90 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ | 90 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ |
| OLD | NEW |