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

Unified Diff: chrome/browser/ui/apps/chrome_shell_window_delegate.h

Issue 21344002: Move native_app_window code to apps areas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to after mac app shim fix Created 7 years, 4 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
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 a0e971dc028fda481a0a9e29ee75517124096a96..1cd3fd762a15202a05f2f2c67644fe9ac5bf2f80 100644
--- a/chrome/browser/ui/apps/chrome_shell_window_delegate.h
+++ b/chrome/browser/ui/apps/chrome_shell_window_delegate.h
@@ -13,8 +13,6 @@
#include "ui/base/window_open_disposition.h"
#include "ui/gfx/rect.h"
-namespace chrome {
-
class ShellWindowLinkDelegate : public content::WebContentsDelegate {
public:
ShellWindowLinkDelegate();
@@ -38,6 +36,9 @@ class ChromeShellWindowDelegate : public apps::ShellWindow::Delegate {
private:
// apps::ShellWindow::Delegate:
virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE;
+ virtual apps::NativeAppWindow* CreateNativeAppWindow(
+ apps::ShellWindow* window,
+ const apps::ShellWindow::CreateParams& params) OVERRIDE;
virtual content::WebContents* OpenURLFromTab(
Profile* profile,
content::WebContents* source,
@@ -65,11 +66,14 @@ class ChromeShellWindowDelegate : public apps::ShellWindow::Delegate {
virtual bool IsWebContentsVisible(
content::WebContents* web_contents) OVERRIDE;
+ // Implemented in platform specific code.
+ static apps::NativeAppWindow* CreateNativeAppWindowImpl(
+ apps::ShellWindow* window,
+ const apps::ShellWindow::CreateParams& params);
+
scoped_ptr<ShellWindowLinkDelegate> shell_window_link_delegate_;
DISALLOW_COPY_AND_ASSIGN(ChromeShellWindowDelegate);
};
-} // namespace chrome
-
#endif // CHROME_BROWSER_UI_APPS_CHROME_SHELL_WINDOW_DELEGATE_H_
« no previous file with comments | « chrome/browser/extensions/shell_window_registry.cc ('k') | chrome/browser/ui/apps/chrome_shell_window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698