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

Unified Diff: apps/app_window.h

Issue 436503002: Moved CreateNativeAppWindow from AppWindow::Delegate to AppsClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | apps/app_window.cc » ('j') | chrome/browser/ui/apps/chrome_apps_client.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_window.h
diff --git a/apps/app_window.h b/apps/app_window.h
index 151e8802f70d70c58f5a35bb84bb67b8f7f8668a..8730d62b3fff052bd90b9c587e9abf6c941cbc5d 100644
--- a/apps/app_window.h
+++ b/apps/app_window.h
@@ -196,15 +196,6 @@ class AppWindow : public content::NotificationObserver,
gfx::Size GetWindowMaximumSize(const gfx::Insets& frame_insets) const;
};
- class Delegate {
- public:
- virtual ~Delegate();
-
- virtual NativeAppWindow* CreateNativeAppWindow(
- AppWindow* window,
- const CreateParams& params) = 0;
- };
-
// Convert draggable regions in raw format to SkRegion format. Caller is
// responsible for deleting the returned SkRegion instance.
static SkRegion* RawDraggableRegionsToSkRegion(
@@ -216,7 +207,6 @@ class AppWindow : public content::NotificationObserver,
// Takes ownership of |app_delegate| and |delegate|.
AppWindow(content::BrowserContext* context,
AppDelegate* app_delegate,
- Delegate* delegate,
const extensions::Extension* extension);
// Initializes the render interface, web contents, and native window.
@@ -518,7 +508,6 @@ class AppWindow : public content::NotificationObserver,
scoped_ptr<NativeAppWindow> native_app_window_;
scoped_ptr<AppWindowContents> app_window_contents_;
scoped_ptr<AppDelegate> app_delegate_;
- scoped_ptr<Delegate> delegate_;
// Manages popup windows (bubbles, tab-modals) visible overlapping the
// app window.
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | chrome/browser/ui/apps/chrome_apps_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698