| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual content::ColorChooser* ShowColorChooser( | 56 virtual content::ColorChooser* ShowColorChooser( |
| 57 content::WebContents* web_contents, | 57 content::WebContents* web_contents, |
| 58 SkColor initial_color) = 0; | 58 SkColor initial_color) = 0; |
| 59 virtual void RunFileChooser(content::WebContents* tab, | 59 virtual void RunFileChooser(content::WebContents* tab, |
| 60 const content::FileChooserParams& params) = 0; | 60 const content::FileChooserParams& params) = 0; |
| 61 virtual void RequestMediaAccessPermission( | 61 virtual void RequestMediaAccessPermission( |
| 62 content::WebContents* web_contents, | 62 content::WebContents* web_contents, |
| 63 const content::MediaStreamRequest& request, | 63 const content::MediaStreamRequest& request, |
| 64 const content::MediaResponseCallback& callback, | 64 const content::MediaResponseCallback& callback, |
| 65 const Extension* extension) = 0; | 65 const Extension* extension) = 0; |
| 66 virtual bool CheckMediaAccessPermission(content::WebContents* web_contents, |
| 67 const GURL& security_origin, |
| 68 content::MediaStreamType type, |
| 69 const Extension* extension) = 0; |
| 66 virtual int PreferredIconSize() = 0; | 70 virtual int PreferredIconSize() = 0; |
| 67 virtual gfx::ImageSkia GetAppDefaultIcon() = 0; | 71 virtual gfx::ImageSkia GetAppDefaultIcon() = 0; |
| 68 | 72 |
| 69 // Web contents modal dialog support. | 73 // Web contents modal dialog support. |
| 70 virtual void SetWebContentsBlocked(content::WebContents* web_contents, | 74 virtual void SetWebContentsBlocked(content::WebContents* web_contents, |
| 71 bool blocked) = 0; | 75 bool blocked) = 0; |
| 72 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; | 76 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; |
| 73 | 77 |
| 74 // |callback| will be called when the process is about to terminate. | 78 // |callback| will be called when the process is about to terminate. |
| 75 virtual void SetTerminatingCallback(const base::Closure& callback) = 0; | 79 virtual void SetTerminatingCallback(const base::Closure& callback) = 0; |
| 76 }; | 80 }; |
| 77 | 81 |
| 78 } // namespace extensions | 82 } // namespace extensions |
| 79 | 83 |
| 80 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ | 84 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ |
| OLD | NEW |