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

Unified Diff: athena/extensions/chrome/athena_app_delegate.h

Issue 544953003: Supprot V2 app: step1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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 | « athena/extensions/chrome/DEPS ('k') | athena/extensions/chrome/athena_app_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/extensions/chrome/athena_app_delegate.h
diff --git a/extensions/shell/browser/shell_app_delegate.h b/athena/extensions/chrome/athena_app_delegate.h
similarity index 72%
copy from extensions/shell/browser/shell_app_delegate.h
copy to athena/extensions/chrome/athena_app_delegate.h
index 6e58e17fc835deb01e711fca793fd7ffd9c2e5bf..0c41a7bed583490e06fd383e45d6e8f325238827 100644
--- a/extensions/shell/browser/shell_app_delegate.h
+++ b/athena/extensions/chrome/athena_app_delegate.h
@@ -2,20 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_
-#define EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_
+#ifndef ATHENA_EXTENSIONS_CHROME_ATHENA_APP_DELEGATE_H_
+#define ATHENA_EXTENSIONS_CHROME_ATHENA_APP_DELEGATE_H_
+#include "base/callback.h"
+#include "base/memory/scoped_ptr.h"
#include "extensions/browser/app_window/app_delegate.h"
+#include "ui/base/window_open_disposition.h"
-namespace extensions {
+namespace athena {
-// app_shell's AppDelegate implementation.
-class ShellAppDelegate : public AppDelegate {
+class AthenaAppDelegate : public extensions::AppDelegate {
public:
- ShellAppDelegate();
- virtual ~ShellAppDelegate();
+ AthenaAppDelegate();
+ virtual ~AthenaAppDelegate();
- // AppDelegate overrides:
+ private:
+ class NewWindowContentsDelegate;
+
+ // extensions::AppDelegate:
virtual void InitWebContents(content::WebContents* web_contents) OVERRIDE;
virtual void ResizeWebContents(content::WebContents* web_contents,
const gfx::Size& size) OVERRIDE;
@@ -39,7 +44,7 @@ class ShellAppDelegate : public AppDelegate {
content::WebContents* web_contents,
const content::MediaStreamRequest& request,
const content::MediaResponseCallback& callback,
- const Extension* extension) OVERRIDE;
+ const extensions::Extension* extension) OVERRIDE;
virtual int PreferredIconSize() OVERRIDE;
virtual gfx::ImageSkia GetAppDefaultIcon() OVERRIDE;
virtual void SetWebContentsBlocked(content::WebContents* web_contents,
@@ -48,10 +53,12 @@ class ShellAppDelegate : public AppDelegate {
content::WebContents* web_contents) OVERRIDE;
virtual void SetTerminatingCallback(const base::Closure& callback) OVERRIDE;
- private:
- DISALLOW_COPY_AND_ASSIGN(ShellAppDelegate);
+ scoped_ptr<NewWindowContentsDelegate> new_window_contents_delegate_;
+ base::Closure terminating_callback_;
+
+ DISALLOW_COPY_AND_ASSIGN(AthenaAppDelegate);
};
-} // namespace extensions
+} // namespace athena
-#endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_DELEGATE_H_
+#endif // ATHENA_EXTENSIONS_CHROME_ATHENA_APP_DELEGATE_H_
« no previous file with comments | « athena/extensions/chrome/DEPS ('k') | athena/extensions/chrome/athena_app_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698