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

Side by Side Diff: athena/extensions/chrome/athena_chrome_app_window_client.cc

Issue 863033002: Delete athena/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "athena/extensions/chrome/athena_chrome_app_window_client.h"
6
7 #include "athena/extensions/chrome/athena_chrome_app_delegate.h"
8 #include "chrome/browser/devtools/devtools_window.h"
9 #include "chrome/common/extensions/features/feature_channel.h"
10 #include "extensions/browser/app_window/app_window.h"
11
12 namespace athena {
13
14 AthenaChromeAppWindowClient::AthenaChromeAppWindowClient() {
15 }
16
17 AthenaChromeAppWindowClient::~AthenaChromeAppWindowClient() {
18 }
19
20 extensions::AppWindow* AthenaChromeAppWindowClient::CreateAppWindow(
21 content::BrowserContext* context,
22 const extensions::Extension* extension) {
23 return new extensions::AppWindow(
24 context, new AthenaChromeAppDelegate, extension);
25 }
26
27 void AthenaChromeAppWindowClient::OpenDevToolsWindow(
28 content::WebContents* web_contents,
29 const base::Closure& callback) {
30 // TODO(oshima): Figure out what to do.
31 DevToolsWindow* devtools_window = DevToolsWindow::OpenDevToolsWindow(
32 web_contents, DevToolsToggleAction::ShowConsole());
33 devtools_window->SetLoadCompletedCallback(callback);
34 }
35
36 bool AthenaChromeAppWindowClient::IsCurrentChannelOlderThanDev() {
37 return extensions::GetCurrentChannel() > chrome::VersionInfo::CHANNEL_DEV;
38 }
39
40 } // namespace athena
OLDNEW
« no previous file with comments | « athena/extensions/chrome/athena_chrome_app_window_client.h ('k') | athena/extensions/chrome/athena_extension_install_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698