Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ | |
| 7 | |
| 8 #include "apps/shell_window.h" | |
| 9 #include "chrome/browser/profiles/profile.h" | |
| 10 #include "content/public/browser/web_contents.h" | |
| 11 #include "content/public/browser/web_contents_delegate.h" | |
| 12 #include "ui/base/window_open_disposition.h" | |
| 13 #include "ui/gfx/rect.h" | |
| 14 | |
| 15 namespace chrome { | |
| 16 | |
| 17 class ChromeShellWindowDelegate : public apps::ShellWindow::Delegate { | |
| 18 public: | |
| 19 virtual ~ChromeShellWindowDelegate(); | |
| 20 | |
| 21 static void DisableExternalOpenForTesting(); | |
| 22 | |
| 23 private: | |
| 24 // apps::ShellWindow::Delegate: | |
| 25 virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE; | |
| 26 virtual content::WebContents* OpenURLFromTab( | |
| 27 Profile* profile, | |
| 28 content::WebContents* source, | |
| 29 const content::OpenURLParams& params) OVERRIDE; | |
| 30 virtual void AddNewContents(Profile* profile, | |
| 31 content::WebContents* new_contents, | |
| 32 WindowOpenDisposition disposition, | |
| 33 const gfx::Rect& initial_pos, | |
| 34 bool user_gesture, | |
| 35 bool* was_blocked) OVERRIDE; | |
| 36 virtual content::ColorChooser* ShowColorChooser( | |
| 37 content::WebContents* web_contents, | |
| 38 SkColor initial_color) OVERRIDE; | |
| 39 virtual void RunFileChooser( | |
| 40 content::WebContents* tab, | |
| 41 const content::FileChooserParams& params) OVERRIDE; | |
| 42 virtual void RequestMediaAccessPermission( | |
| 43 content::WebContents* web_contents, | |
| 44 const content::MediaStreamRequest& request, | |
| 45 const content::MediaResponseCallback& callback, | |
| 46 const extensions::Extension* extension) OVERRIDE; | |
| 47 virtual int PreferredIconSize() OVERRIDE; | |
| 48 virtual void SetWebContentsBlocked(content::WebContents* web_contents, | |
| 49 bool blocked) OVERRIDE; | |
| 50 virtual bool IsWebContentsVisible( | |
| 51 content::WebContents* web_contents) OVERRIDE; | |
| 52 }; | |
|
sky
2013/06/19 14:16:04
private:DISALLOW_...
benwells
2013/06/25 08:36:03
Done.
| |
| 53 | |
| 54 } // namespace chrome | |
| 55 | |
| 56 #endif // CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_ | |
| OLD | NEW |