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

Unified Diff: apps/apps_client.h

Issue 171523005: BACKUP: NativeAppWindowView - before splitting CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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.gypi ('k') | apps/shell/browser/shell_apps_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/apps_client.h
diff --git a/apps/apps_client.h b/apps/apps_client.h
index f67aad679c7f3b1af3035e7e4d1ccb0999735722..bd5474c9438ce40bb76305e89ccc09141a617645 100644
--- a/apps/apps_client.h
+++ b/apps/apps_client.h
@@ -17,6 +17,8 @@ class Extension;
namespace apps {
+class AppWindow;
+
// 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.
class AppsClient {
@@ -29,6 +31,17 @@ class AppsClient {
virtual bool CheckAppLaunch(content::BrowserContext* context,
const extensions::Extension* extension) = 0;
+ // Creates a new apps::AppWindow for the app in |extension| for |context|.
+ // Caller takes ownership.
+ virtual AppWindow* CreateAppWindow(
+ content::BrowserContext* context,
+ const extensions::Extension* extension) = 0;
+
+ // Tells the embedding application to stay running. The application may close
+ // after a matching number of calls to EndKeepAlive() are made.
+ virtual void StartKeepAlive() = 0;
+ virtual void EndKeepAlive() = 0;
+
// Return the apps client.
static AppsClient* Get();
« no previous file with comments | « apps/apps.gypi ('k') | apps/shell/browser/shell_apps_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698