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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
10 #include "extensions/browser/app_window/app_delegate.h" | 10 #include "extensions/browser/app_window/app_delegate.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 content::WebContents* source, | 28 content::WebContents* source, |
29 const content::OpenURLParams& params) override; | 29 const content::OpenURLParams& params) override; |
30 void AddNewContents(content::BrowserContext* context, | 30 void AddNewContents(content::BrowserContext* context, |
31 content::WebContents* new_contents, | 31 content::WebContents* new_contents, |
32 WindowOpenDisposition disposition, | 32 WindowOpenDisposition disposition, |
33 const gfx::Rect& initial_rect, | 33 const gfx::Rect& initial_rect, |
34 bool user_gesture, | 34 bool user_gesture, |
35 bool* was_blocked) override; | 35 bool* was_blocked) override; |
36 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, | 36 content::ColorChooser* ShowColorChooser(content::WebContents* web_contents, |
37 SkColor initial_color) override; | 37 SkColor initial_color) override; |
38 void RunFileChooser(content::WebContents* tab, | 38 void RunFileChooser(content::RenderFrameHost* render_frame_host, |
39 const content::FileChooserParams& params) override; | 39 const content::FileChooserParams& params) override; |
40 void RequestMediaAccessPermission( | 40 void RequestMediaAccessPermission( |
41 content::WebContents* web_contents, | 41 content::WebContents* web_contents, |
42 const content::MediaStreamRequest& request, | 42 const content::MediaStreamRequest& request, |
43 const content::MediaResponseCallback& callback, | 43 const content::MediaResponseCallback& callback, |
44 const Extension* extension) override; | 44 const Extension* extension) override; |
45 bool CheckMediaAccessPermission(content::WebContents* web_contents, | 45 bool CheckMediaAccessPermission(content::WebContents* web_contents, |
46 const GURL& security_origin, | 46 const GURL& security_origin, |
47 content::MediaStreamType type, | 47 content::MediaStreamType type, |
48 const Extension* extension) override; | 48 const Extension* extension) override; |
49 int PreferredIconSize() override; | 49 int PreferredIconSize() override; |
50 void SetWebContentsBlocked(content::WebContents* web_contents, | 50 void SetWebContentsBlocked(content::WebContents* web_contents, |
51 bool blocked) override; | 51 bool blocked) override; |
52 bool IsWebContentsVisible(content::WebContents* web_contents) override; | 52 bool IsWebContentsVisible(content::WebContents* web_contents) override; |
53 void SetTerminatingCallback(const base::Closure& callback) override; | 53 void SetTerminatingCallback(const base::Closure& callback) override; |
54 void OnHide() override {} | 54 void OnHide() override {} |
55 void OnShow() override {} | 55 void OnShow() override {} |
56 | 56 |
57 private: | 57 private: |
58 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate); | 58 DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace extensions | 61 } // namespace extensions |
62 | 62 |
63 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ | 63 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_ |
OLD | NEW |