Chromium Code Reviews| OLD | NEW |
|---|---|
| 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_SHELL_WINDOW_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "apps/shell_window.h" | 8 #include "apps/shell_window.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.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 chrome { | 15 namespace chrome { |
| 16 | 16 |
| 17 class ChromeShellWindowDelegate : public apps::ShellWindow::Delegate { | 17 class ChromeShellWindowDelegate : public apps::ShellWindow::Delegate { |
| 18 public: | 18 public: |
| 19 ChromeShellWindowDelegate(); | 19 ChromeShellWindowDelegate(); |
| 20 virtual ~ChromeShellWindowDelegate(); | 20 virtual ~ChromeShellWindowDelegate(); |
| 21 | 21 |
| 22 static void DisableExternalOpenForTesting(); | 22 static void DisableExternalOpenForTesting(); |
| 23 static void EnableExternalOpenForTesting(); | |
|
Ken Rockot(use gerrit already)
2013/07/01 15:02:54
This is never needed.
| |
| 23 | 24 |
| 24 private: | 25 private: |
| 25 // apps::ShellWindow::Delegate: | 26 // apps::ShellWindow::Delegate: |
| 26 virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE; | 27 virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE; |
| 27 virtual content::WebContents* OpenURLFromTab( | 28 virtual content::WebContents* OpenURLFromTab( |
| 28 Profile* profile, | 29 Profile* profile, |
| 29 content::WebContents* source, | 30 content::WebContents* source, |
| 30 const content::OpenURLParams& params) OVERRIDE; | 31 const content::OpenURLParams& params) OVERRIDE; |
| 31 virtual void AddNewContents(Profile* profile, | 32 virtual void AddNewContents(Profile* profile, |
| 32 content::WebContents* new_contents, | 33 content::WebContents* new_contents, |
| (...skipping 17 matching lines...) Expand all Loading... | |
| 50 bool blocked) OVERRIDE; | 51 bool blocked) OVERRIDE; |
| 51 virtual bool IsWebContentsVisible( | 52 virtual bool IsWebContentsVisible( |
| 52 content::WebContents* web_contents) OVERRIDE; | 53 content::WebContents* web_contents) OVERRIDE; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(ChromeShellWindowDelegate); | 55 DISALLOW_COPY_AND_ASSIGN(ChromeShellWindowDelegate); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace chrome | 58 } // namespace chrome |
| 58 | 59 |
| 59 #endif // CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ | 60 #endif // CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ |
| OLD | NEW |