| 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 APPS_APP_DELEGATE_H_ | 5 #ifndef APPS_APP_DELEGATE_H_ |
| 6 #define APPS_APP_DELEGATE_H_ | 6 #define APPS_APP_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "content/public/common/media_stream_request.h" | 8 #include "content/public/common/media_stream_request.h" |
| 9 #include "third_party/skia/include/core/SkColor.h" | 9 #include "third_party/skia/include/core/SkColor.h" |
| 10 #include "ui/base/window_open_disposition.h" | 10 #include "ui/base/window_open_disposition.h" |
| 11 #include "ui/gfx/image/image_skia.h" |
| 11 | 12 |
| 12 namespace content { | 13 namespace content { |
| 13 class BrowserContext; | 14 class BrowserContext; |
| 14 class ColorChooser; | 15 class ColorChooser; |
| 15 struct FileChooserParams; | 16 struct FileChooserParams; |
| 16 struct OpenURLParams; | 17 struct OpenURLParams; |
| 17 class WebContents; | 18 class WebContents; |
| 18 } | 19 } |
| 19 | 20 |
| 20 namespace extensions { | 21 namespace extensions { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 content::WebContents* web_contents, | 54 content::WebContents* web_contents, |
| 54 SkColor initial_color) = 0; | 55 SkColor initial_color) = 0; |
| 55 virtual void RunFileChooser(content::WebContents* tab, | 56 virtual void RunFileChooser(content::WebContents* tab, |
| 56 const content::FileChooserParams& params) = 0; | 57 const content::FileChooserParams& params) = 0; |
| 57 virtual void RequestMediaAccessPermission( | 58 virtual void RequestMediaAccessPermission( |
| 58 content::WebContents* web_contents, | 59 content::WebContents* web_contents, |
| 59 const content::MediaStreamRequest& request, | 60 const content::MediaStreamRequest& request, |
| 60 const content::MediaResponseCallback& callback, | 61 const content::MediaResponseCallback& callback, |
| 61 const extensions::Extension* extension) = 0; | 62 const extensions::Extension* extension) = 0; |
| 62 virtual int PreferredIconSize() = 0; | 63 virtual int PreferredIconSize() = 0; |
| 64 virtual gfx::ImageSkia GetAppDefaultIcon() = 0; |
| 63 | 65 |
| 64 // Web contents modal dialog support. | 66 // Web contents modal dialog support. |
| 65 virtual void SetWebContentsBlocked(content::WebContents* web_contents, | 67 virtual void SetWebContentsBlocked(content::WebContents* web_contents, |
| 66 bool blocked) = 0; | 68 bool blocked) = 0; |
| 67 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; | 69 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 } // namespace apps | 72 } // namespace apps |
| 71 | 73 |
| 72 #endif // APPS_APP_DELEGATE_H_ | 74 #endif // APPS_APP_DELEGATE_H_ |
| OLD | NEW |