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

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: Rebase. Created 6 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
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | no next file with comments »
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 56d627f3cf8b92ecf9469715019fd14494ba388d..ba3b44861e47871f1a9d4b5e3598daa02e3c164c 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.
@@ -514,7 +504,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_;
scoped_ptr<AppWebContentsHelper> helper_;
// Manages popup windows (bubbles, tab-modals) visible overlapping the
« no previous file with comments | « no previous file | apps/app_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698