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_ |