| Index: apps/shell/browser/shell_shell_window_delegate.h | 
| diff --git a/apps/shell/browser/shell_shell_window_delegate.h b/apps/shell/browser/shell_shell_window_delegate.h | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..2be242ee52556dc7ca4a53ebbd084a85e0be71cb | 
| --- /dev/null | 
| +++ b/apps/shell/browser/shell_shell_window_delegate.h | 
| @@ -0,0 +1,57 @@ | 
| +// Copyright 2014 The Chromium Authors. All rights reserved. | 
| +// Use of this source code is governed by a BSD-style license that can be | 
| +// found in the LICENSE file. | 
| + | 
| +#ifndef APPS_SHELL_BROWSER_SHELL_SHELL_WINDOW_DELEGATE_H_ | 
| +#define APPS_SHELL_BROWSER_SHELL_SHELL_WINDOW_DELEGATE_H_ | 
| + | 
| +#include "apps/shell_window.h" | 
| + | 
| +namespace apps { | 
| + | 
| +// The ShellWindow::Delegate for app_shell. Used to create instances of | 
| +// ShellNativeAppWindow. Other functionality is not supported. | 
| +class ShellShellWindowDelegate : public ShellWindow::Delegate { | 
| + public: | 
| +  ShellShellWindowDelegate(); | 
| +  virtual ~ShellShellWindowDelegate(); | 
| + | 
| + private: | 
| +  // ShellWindow::Delegate: | 
| +  virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE; | 
| +  virtual NativeAppWindow* CreateNativeAppWindow( | 
| +      ShellWindow* window, | 
| +      const ShellWindow::CreateParams& params) OVERRIDE; | 
| +  virtual content::WebContents* OpenURLFromTab( | 
| +      content::BrowserContext* context, | 
| +      content::WebContents* source, | 
| +      const content::OpenURLParams& params) OVERRIDE; | 
| +  virtual void AddNewContents(content::BrowserContext* context, | 
| +                              content::WebContents* new_contents, | 
| +                              WindowOpenDisposition disposition, | 
| +                              const gfx::Rect& initial_pos, | 
| +                              bool user_gesture, | 
| +                              bool* was_blocked) OVERRIDE; | 
| +  virtual content::ColorChooser* ShowColorChooser( | 
| +      content::WebContents* web_contents, | 
| +      SkColor initial_color) OVERRIDE; | 
| +  virtual void RunFileChooser( | 
| +      content::WebContents* tab, | 
| +      const content::FileChooserParams& params) OVERRIDE; | 
| +  virtual void RequestMediaAccessPermission( | 
| +      content::WebContents* web_contents, | 
| +      const content::MediaStreamRequest& request, | 
| +      const content::MediaResponseCallback& callback, | 
| +      const extensions::Extension* extension) OVERRIDE; | 
| +  virtual int PreferredIconSize() OVERRIDE; | 
| +  virtual void SetWebContentsBlocked(content::WebContents* web_contents, | 
| +                                     bool blocked) OVERRIDE; | 
| +  virtual bool IsWebContentsVisible( | 
| +      content::WebContents* web_contents) OVERRIDE; | 
| + | 
| +  DISALLOW_COPY_AND_ASSIGN(ShellShellWindowDelegate); | 
| +}; | 
| + | 
| +}  // namespace apps | 
| + | 
| +#endif  // APPS_SHELL_BROWSER_SHELL_SHELL_WINDOW_DELEGATE_H_ | 
|  |