Chromium Code Reviews| Index: chrome/browser/ui/apps/chrome_shell_window_delegate.h |
| diff --git a/chrome/browser/ui/apps/chrome_shell_window_delegate.h b/chrome/browser/ui/apps/chrome_shell_window_delegate.h |
| index 4bad8b2c85f9376e3bba5131a13041e2a379e3e4..44aad94a3b2ae8216fdd4973db531dea074511c7 100644 |
| --- a/chrome/browser/ui/apps/chrome_shell_window_delegate.h |
| +++ b/chrome/browser/ui/apps/chrome_shell_window_delegate.h |
| @@ -6,6 +6,7 @@ |
| #define CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ |
| #include "apps/shell_window.h" |
| +#include "base/memory/scoped_ptr.h" |
| #include "chrome/browser/profiles/profile.h" |
| #include "content/public/browser/web_contents.h" |
| #include "content/public/browser/web_contents_delegate.h" |
| @@ -14,6 +15,18 @@ |
| namespace chrome { |
| +class ShellWindowLinkDelegate : public content::WebContentsDelegate { |
|
sky
2013/07/08 14:51:39
And virtual destructor.
zhchbin
2013/07/09 02:00:10
Done.
|
| + public: |
| + ShellWindowLinkDelegate(); |
| + |
| + private: |
| + virtual content::WebContents* OpenURLFromTab( |
| + content::WebContents* source, |
| + const content::OpenURLParams& params) OVERRIDE; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ShellWindowLinkDelegate); |
| +}; |
| + |
| class ChromeShellWindowDelegate : public apps::ShellWindow::Delegate { |
| public: |
| ChromeShellWindowDelegate(); |
| @@ -51,6 +64,8 @@ class ChromeShellWindowDelegate : public apps::ShellWindow::Delegate { |
| virtual bool IsWebContentsVisible( |
| content::WebContents* web_contents) OVERRIDE; |
| + scoped_ptr<ShellWindowLinkDelegate> shell_window_link_delegate_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ChromeShellWindowDelegate); |
| }; |