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