summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorhashimoto <hashimoto@chromium.org>2014-08-25 22:03:07 -0700
committerCommit bot <commit-bot@chromium.org>2014-08-26 05:04:47 +0000
commit1bba58e7ed1fdfb97d53f7ed26df5571c2e9d7c5 (patch)
treef09aed47ad411c35b72c19d7666474c2fcade2c4 /apps
parent57c53090a8c05a41a95384b0b10c21b5293fa411 (diff)
downloadchromium_src-1bba58e7ed1fdfb97d53f7ed26df5571c2e9d7c5.zip
chromium_src-1bba58e7ed1fdfb97d53f7ed26df5571c2e9d7c5.tar.gz
chromium_src-1bba58e7ed1fdfb97d53f7ed26df5571c2e9d7c5.tar.bz2
Remove chrome dependencies from app_window_api.cc
Add OpenDevToolsWindow() and IsCurrentChannelOlderThanDev() to AppsClient. BUG=387288 Review URL: https://codereview.chromium.org/494483006 Cr-Commit-Position: refs/heads/master@{#291843}
Diffstat (limited to 'apps')
-rw-r--r--apps/ui/apps_client.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/ui/apps_client.h b/apps/ui/apps_client.h
index da4b2bf..f601e67 100644
--- a/apps/ui/apps_client.h
+++ b/apps/ui/apps_client.h
@@ -8,9 +8,11 @@
#include <vector>
#include "apps/app_window.h"
+#include "base/callback_forward.h"
namespace content {
class BrowserContext;
+class WebContents;
}
namespace extensions {
@@ -43,6 +45,13 @@ class AppsClient {
virtual void IncrementKeepAliveCount() = 0;
virtual void DecrementKeepAliveCount() = 0;
+ // Opens DevTools window and runs the callback.
+ virtual void OpenDevToolsWindow(content::WebContents* web_contents,
+ const base::Closure& callback) = 0;
+
+ // Returns true if the current channel is older than dev.
+ virtual bool IsCurrentChannelOlderThanDev() = 0;
+
// Return the apps client.
static AppsClient* Get();