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

Unified Diff: apps/app_window.h

Issue 423453002: Refactor AppWindow to enable code re-use with launcher pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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
Index: apps/app_window.h
diff --git a/apps/app_window.h b/apps/app_window.h
index 151e8802f70d70c58f5a35bb84bb67b8f7f8668a..56d627f3cf8b92ecf9469715019fd14494ba388d 100644
--- a/apps/app_window.h
+++ b/apps/app_window.h
@@ -17,7 +17,6 @@
#include "content/public/browser/notification_registrar.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/browser/web_contents_observer.h"
-#include "content/public/common/console_message_level.h"
#include "extensions/browser/extension_icon_image.h"
#include "ui/base/ui_base_types.h" // WindowShowState
#include "ui/gfx/image/image.h"
@@ -50,6 +49,7 @@ class BaseWindow;
namespace apps {
class AppDelegate;
+class AppWebContentsHelper;
class NativeAppWindow;
// Manages the web contents for app windows. The implementation for this
@@ -427,10 +427,6 @@ class AppWindow : public content::NotificationObserver,
virtual bool IsWebContentsVisible(content::WebContents* web_contents)
OVERRIDE;
- // Helper method to add a message to the renderer's DevTools console.
- void AddMessageToDevToolsConsole(content::ConsoleMessageLevel level,
- const std::string& message);
-
// Saves the window geometry/position/screen bounds.
void SaveWindowPosition();
@@ -519,6 +515,7 @@ class AppWindow : public content::NotificationObserver,
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
// app window.

Powered by Google App Engine
This is Rietveld 408576698