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

Unified Diff: apps/shell/browser/shell_shell_window_delegate.h

Issue 171523005: BACKUP: NativeAppWindowView - before splitting CL (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « apps/shell/browser/shell_native_app_window.cc ('k') | apps/shell/browser/shell_shell_window_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..3b1e87c90b401bb7ccaab841ba23c05b6a3fe0af
--- /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/app_window.h"
+
+namespace apps {
+
+// The ShellWindow::Delegate for app_shell. Used to create instances of
+// ShellNativeAppWindow. Other functionality is not supported.
+class ShellShellWindowDelegate : public AppWindow::Delegate {
+ public:
+ ShellShellWindowDelegate();
+ virtual ~ShellShellWindowDelegate();
+
+ private:
+ // ShellWindow::Delegate:
+ virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE;
+ virtual NativeAppWindow* CreateNativeAppWindow(
+ AppWindow* window,
+ const AppWindow::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_
« no previous file with comments | « apps/shell/browser/shell_native_app_window.cc ('k') | apps/shell/browser/shell_shell_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698