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

Side by Side Diff: apps/ui/apps_client.h

Issue 494483006: Remove chrome dependencies from app_window_api.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app_window/app_window_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef APPS_UI_APPS_CLIENT_H_ 5 #ifndef APPS_UI_APPS_CLIENT_H_
6 #define APPS_UI_APPS_CLIENT_H_ 6 #define APPS_UI_APPS_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "apps/app_window.h" 10 #include "apps/app_window.h"
11 #include "base/callback_forward.h"
11 12
12 namespace content { 13 namespace content {
13 class BrowserContext; 14 class BrowserContext;
15 class WebContents;
14 } 16 }
15 17
16 namespace extensions { 18 namespace extensions {
17 class Extension; 19 class Extension;
18 class NativeAppWindow; 20 class NativeAppWindow;
19 } 21 }
20 22
21 namespace apps { 23 namespace apps {
22 24
23 // Sets up global state for the apps system. Should be Set() once in each 25 // Sets up global state for the apps system. Should be Set() once in each
(...skipping 12 matching lines...) Expand all
36 // Creates a new extensions::NativeAppWindow for |window|. 38 // Creates a new extensions::NativeAppWindow for |window|.
37 virtual extensions::NativeAppWindow* CreateNativeAppWindow( 39 virtual extensions::NativeAppWindow* CreateNativeAppWindow(
38 AppWindow* window, 40 AppWindow* window,
39 const AppWindow::CreateParams& params) = 0; 41 const AppWindow::CreateParams& params) = 0;
40 42
41 // A positive keep-alive count is a request for the embedding application to 43 // A positive keep-alive count is a request for the embedding application to
42 // keep running after all windows are closed. The count starts at zero. 44 // keep running after all windows are closed. The count starts at zero.
43 virtual void IncrementKeepAliveCount() = 0; 45 virtual void IncrementKeepAliveCount() = 0;
44 virtual void DecrementKeepAliveCount() = 0; 46 virtual void DecrementKeepAliveCount() = 0;
45 47
48 // Opens DevTools window and runs the callback.
49 virtual void OpenDevToolsWindow(content::WebContents* web_contents,
50 const base::Closure& callback) = 0;
51
52 // Returns true if the current channel is older than dev.
53 virtual bool IsCurrentChannelOlderThanDev() = 0;
54
46 // Return the apps client. 55 // Return the apps client.
47 static AppsClient* Get(); 56 static AppsClient* Get();
48 57
49 // Initialize the apps system with this apps client. 58 // Initialize the apps system with this apps client.
50 static void Set(AppsClient* client); 59 static void Set(AppsClient* client);
51 }; 60 };
52 61
53 } // namespace apps 62 } // namespace apps
54 63
55 #endif // APPS_UI_APPS_CLIENT_H_ 64 #endif // APPS_UI_APPS_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/app_window/app_window_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698