Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: chrome/browser/ui/apps/chrome_app_delegate.h

Issue 503233003: Add AppDelegate::ResizeWebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call the right function Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/ui/apps/chrome_app_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698