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 CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 ChromeAppDelegate(); | 24 ChromeAppDelegate(); |
25 virtual ~ChromeAppDelegate(); | 25 virtual ~ChromeAppDelegate(); |
26 | 26 |
27 static void DisableExternalOpenForTesting(); | 27 static void DisableExternalOpenForTesting(); |
28 | 28 |
29 private: | 29 private: |
30 class NewWindowContentsDelegate; | 30 class NewWindowContentsDelegate; |
31 | 31 |
32 // extensions::AppDelegate: | 32 // extensions::AppDelegate: |
33 virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE; | 33 virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE; |
| 34 virtual void ResizeWebContents(content::WebContents* web_contents, |
| 35 const gfx::Size& size) OVERRIDE; |
34 virtual content::WebContents* OpenURLFromTab( | 36 virtual content::WebContents* OpenURLFromTab( |
35 content::BrowserContext* context, | 37 content::BrowserContext* context, |
36 content::WebContents* source, | 38 content::WebContents* source, |
37 const content::OpenURLParams& params) OVERRIDE; | 39 const content::OpenURLParams& params) OVERRIDE; |
38 virtual void AddNewContents(content::BrowserContext* context, | 40 virtual void AddNewContents(content::BrowserContext* context, |
39 content::WebContents* new_contents, | 41 content::WebContents* new_contents, |
40 WindowOpenDisposition disposition, | 42 WindowOpenDisposition disposition, |
41 const gfx::Rect& initial_pos, | 43 const gfx::Rect& initial_pos, |
42 bool user_gesture, | 44 bool user_gesture, |
43 bool* was_blocked) OVERRIDE; | 45 bool* was_blocked) OVERRIDE; |
(...skipping 22 matching lines...) Expand all Loading... |
66 const content::NotificationDetails& details) OVERRIDE; | 68 const content::NotificationDetails& details) OVERRIDE; |
67 | 69 |
68 scoped_ptr<NewWindowContentsDelegate> new_window_contents_delegate_; | 70 scoped_ptr<NewWindowContentsDelegate> new_window_contents_delegate_; |
69 base::Closure terminating_callback_; | 71 base::Closure terminating_callback_; |
70 content::NotificationRegistrar registrar_; | 72 content::NotificationRegistrar registrar_; |
71 | 73 |
72 DISALLOW_COPY_AND_ASSIGN(ChromeAppDelegate); | 74 DISALLOW_COPY_AND_ASSIGN(ChromeAppDelegate); |
73 }; | 75 }; |
74 | 76 |
75 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ | 77 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_DELEGATE_H_ |
OLD | NEW |