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

Unified Diff: apps/ui/apps_client.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 | « apps/apps_client.cc ('k') | apps/ui/apps_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/ui/apps_client.h
diff --git a/apps/apps_client.h b/apps/ui/apps_client.h
similarity index 79%
rename from apps/apps_client.h
rename to apps/ui/apps_client.h
index 95a02e69db4103d770b7fab1c8f9b76e327c68ec..623b1ae42610fb340ae97850380f576701bb24d0 100644
--- a/apps/apps_client.h
+++ b/apps/ui/apps_client.h
@@ -2,11 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef APPS_APPS_CLIENT_H_
-#define APPS_APPS_CLIENT_H_
+#ifndef APPS_UI_APPS_CLIENT_H_
+#define APPS_UI_APPS_CLIENT_H_
#include <vector>
+#include "apps/app_window.h"
+
namespace content {
class BrowserContext;
}
@@ -17,7 +19,7 @@ class Extension;
namespace apps {
-class AppWindow;
+class NativeAppWindow;
// Sets up global state for the apps system. Should be Set() once in each
// process. This should be implemented by the client of the apps system.
@@ -32,6 +34,11 @@ class AppsClient {
content::BrowserContext* context,
const extensions::Extension* extension) = 0;
+ // Creates a new apps::NativeAppWindow for |window|.
+ virtual NativeAppWindow* CreateNativeAppWindow(
+ AppWindow* window,
+ const AppWindow::CreateParams& params) = 0;
+
// A positive keep-alive count is a request for the embedding application to
// keep running after all windows are closed. The count starts at zero.
virtual void IncrementKeepAliveCount() = 0;
@@ -46,4 +53,4 @@ class AppsClient {
} // namespace apps
-#endif // APPS_APPS_CLIENT_H_
+#endif // APPS_UI_APPS_CLIENT_H_
« no previous file with comments | « apps/apps_client.cc ('k') | apps/ui/apps_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698