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

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

Issue 171593002: Rename ChromeShellWindowDelegate to ChromeAppWindowDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_SHELL_WINDOW_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_APPS_CHROME_APP_WINDOW_DELEGATE_H_
6 #define CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_APPS_CHROME_APP_WINDOW_DELEGATE_H_
7 7
8 #include "apps/app_window.h" 8 #include "apps/app_window.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
11 #include "content/public/browser/web_contents_delegate.h" 11 #include "content/public/browser/web_contents_delegate.h"
12 #include "ui/base/window_open_disposition.h" 12 #include "ui/base/window_open_disposition.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 14
15 namespace content { 15 namespace content {
16 class BrowserContext; 16 class BrowserContext;
17 } 17 }
18 18
19 class ShellWindowLinkDelegate : public content::WebContentsDelegate { 19 class AppWindowLinkDelegate : public content::WebContentsDelegate {
20 public: 20 public:
21 ShellWindowLinkDelegate(); 21 AppWindowLinkDelegate();
22 virtual ~ShellWindowLinkDelegate(); 22 virtual ~AppWindowLinkDelegate();
23 23
24 private: 24 private:
25 virtual content::WebContents* OpenURLFromTab( 25 virtual content::WebContents* OpenURLFromTab(
26 content::WebContents* source, 26 content::WebContents* source,
27 const content::OpenURLParams& params) OVERRIDE; 27 const content::OpenURLParams& params) OVERRIDE;
28 28
29 DISALLOW_COPY_AND_ASSIGN(ShellWindowLinkDelegate); 29 DISALLOW_COPY_AND_ASSIGN(AppWindowLinkDelegate);
30 }; 30 };
31 31
32 // TODO(jamescook): Rename to ChromeAppWindowDelegate. http://crbug.com/344084 32 class ChromeAppWindowDelegate : public apps::AppWindow::Delegate {
33 class ChromeShellWindowDelegate : public apps::AppWindow::Delegate {
34 public: 33 public:
35 ChromeShellWindowDelegate(); 34 ChromeAppWindowDelegate();
36 virtual ~ChromeShellWindowDelegate(); 35 virtual ~ChromeAppWindowDelegate();
37 36
38 static void DisableExternalOpenForTesting(); 37 static void DisableExternalOpenForTesting();
39 38
40 private: 39 private:
41 // apps::AppWindow::Delegate: 40 // apps::AppWindow::Delegate:
42 virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE; 41 virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE;
43 virtual apps::NativeAppWindow* CreateNativeAppWindow( 42 virtual apps::NativeAppWindow* CreateNativeAppWindow(
44 apps::AppWindow* window, 43 apps::AppWindow* window,
45 const apps::AppWindow::CreateParams& params) OVERRIDE; 44 const apps::AppWindow::CreateParams& params) OVERRIDE;
46 virtual content::WebContents* OpenURLFromTab( 45 virtual content::WebContents* OpenURLFromTab(
(...skipping 21 matching lines...) Expand all
68 virtual void SetWebContentsBlocked(content::WebContents* web_contents, 67 virtual void SetWebContentsBlocked(content::WebContents* web_contents,
69 bool blocked) OVERRIDE; 68 bool blocked) OVERRIDE;
70 virtual bool IsWebContentsVisible( 69 virtual bool IsWebContentsVisible(
71 content::WebContents* web_contents) OVERRIDE; 70 content::WebContents* web_contents) OVERRIDE;
72 71
73 // Implemented in platform specific code. 72 // Implemented in platform specific code.
74 static apps::NativeAppWindow* CreateNativeAppWindowImpl( 73 static apps::NativeAppWindow* CreateNativeAppWindowImpl(
75 apps::AppWindow* window, 74 apps::AppWindow* window,
76 const apps::AppWindow::CreateParams& params); 75 const apps::AppWindow::CreateParams& params);
77 76
78 scoped_ptr<ShellWindowLinkDelegate> shell_window_link_delegate_; 77 scoped_ptr<AppWindowLinkDelegate> app_window_link_delegate_;
79 78
80 DISALLOW_COPY_AND_ASSIGN(ChromeShellWindowDelegate); 79 DISALLOW_COPY_AND_ASSIGN(ChromeAppWindowDelegate);
81 }; 80 };
82 81
83 #endif // CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ 82 #endif // CHROME_BROWSER_UI_APPS_CHROME_APP_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_api.cc ('k') | chrome/browser/ui/apps/chrome_app_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698