| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 const gfx::Size& size) = 0; | 43 const gfx::Size& size) = 0; |
| 44 | 44 |
| 45 // Link handling. | 45 // Link handling. |
| 46 virtual content::WebContents* OpenURLFromTab( | 46 virtual content::WebContents* OpenURLFromTab( |
| 47 content::BrowserContext* context, | 47 content::BrowserContext* context, |
| 48 content::WebContents* source, | 48 content::WebContents* source, |
| 49 const content::OpenURLParams& params) = 0; | 49 const content::OpenURLParams& params) = 0; |
| 50 virtual void AddNewContents(content::BrowserContext* context, | 50 virtual void AddNewContents(content::BrowserContext* context, |
| 51 content::WebContents* new_contents, | 51 content::WebContents* new_contents, |
| 52 WindowOpenDisposition disposition, | 52 WindowOpenDisposition disposition, |
| 53 const gfx::Rect& initial_pos, | 53 const gfx::Rect& initial_rect, |
| 54 bool user_gesture, | 54 bool user_gesture, |
| 55 bool* was_blocked) = 0; | 55 bool* was_blocked) = 0; |
| 56 | 56 |
| 57 // Feature support. | 57 // Feature support. |
| 58 virtual content::ColorChooser* ShowColorChooser( | 58 virtual content::ColorChooser* ShowColorChooser( |
| 59 content::WebContents* web_contents, | 59 content::WebContents* web_contents, |
| 60 SkColor initial_color) = 0; | 60 SkColor initial_color) = 0; |
| 61 virtual void RunFileChooser(content::WebContents* tab, | 61 virtual void RunFileChooser(content::WebContents* tab, |
| 62 const content::FileChooserParams& params) = 0; | 62 const content::FileChooserParams& params) = 0; |
| 63 virtual void RequestMediaAccessPermission( | 63 virtual void RequestMediaAccessPermission( |
| (...skipping 12 matching lines...) Expand all Loading... |
| 76 bool blocked) = 0; | 76 bool blocked) = 0; |
| 77 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; | 77 virtual bool IsWebContentsVisible(content::WebContents* web_contents) = 0; |
| 78 | 78 |
| 79 // |callback| will be called when the process is about to terminate. | 79 // |callback| will be called when the process is about to terminate. |
| 80 virtual void SetTerminatingCallback(const base::Closure& callback) = 0; | 80 virtual void SetTerminatingCallback(const base::Closure& callback) = 0; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace extensions | 83 } // namespace extensions |
| 84 | 84 |
| 85 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ | 85 #endif // EXTENSIONS_BROWSER_APP_WINDOW_APP_DELEGATE_H_ |
| OLD | NEW |