Commit b73e0783 authored by hashimoto's avatar hashimoto Committed by Commit bot

Remove unused class ShellAppWindowController

BUG=None

Review URL: https://codereview.chromium.org/554623002

Cr-Commit-Position: refs/heads/master@{#293920}
parent 75895532
......@@ -39,9 +39,6 @@ specific_include_rules = {
"+extensions/shell/common",
"+extensions/shell/renderer",
],
"athena_app_window_controller\.*": [
"+extensions/shell/browser",
],
"athena_content_client\.h": [
"+extensions/shell/common",
],
......
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "athena/main/athena_app_window_controller.h"
#include "athena/activity/public/activity_factory.h"
#include "athena/activity/public/activity_manager.h"
#include "base/memory/scoped_ptr.h"
#include "content/public/browser/web_contents_observer.h"
#include "extensions/shell/browser/shell_app_window.h"
namespace athena {
AthenaAppWindowController::AthenaAppWindowController() {
}
AthenaAppWindowController::~AthenaAppWindowController() {
}
extensions::ShellAppWindow* AthenaAppWindowController::CreateAppWindow(
content::BrowserContext* context,
const extensions::Extension* extension) {
extensions::ShellAppWindow* app_window = new extensions::ShellAppWindow();
app_window->Init(context, extension, gfx::Size(100, 100));
ActivityManager::Get()->AddActivity(ActivityFactory::Get()->CreateAppActivity(
app_window));
return app_window;
}
void AthenaAppWindowController::CloseAppWindows() {
// Do nothing.
}
} // namespace athena
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ATHENA_MAIN_ATHENA_APP_WINDOW_CONTROLLER_H_
#define ATHENA_MAIN_ATHENA_APP_WINDOW_CONTROLLER_H_
#include "base/macros.h"
#include "extensions/shell/browser/shell_app_window_controller.h"
namespace athena {
// The shell app window controller for athena. It embeds the web_contents of
// an app window into an Athena activity.
class AthenaAppWindowController : public extensions::ShellAppWindowController {
public:
AthenaAppWindowController();
virtual ~AthenaAppWindowController();
// Overridden from extensions::ShellAppWindowController:
virtual extensions::ShellAppWindow* CreateAppWindow(
content::BrowserContext* context,
const extensions::Extension* extension) OVERRIDE;
virtual void CloseAppWindows() OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(AthenaAppWindowController);
};
} // namespace athena
#endif // ATHENA_MAIN_ATHENA_APP_WINDOW_CONTROLLER_H_
......@@ -60,7 +60,6 @@
'browser/shell_app_delegate.h',
'browser/shell_app_window.cc',
'browser/shell_app_window.h',
'browser/shell_app_window_controller.h',
'browser/shell_apps_client.cc',
'browser/shell_apps_client.h',
'browser/shell_audio_controller_chromeos.cc',
......
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_
#define EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_
namespace content {
class BrowserContext;
}
namespace extensions {
class Extension;
class ShellAppWindow;
class ShellAppWindowController {
public:
virtual ~ShellAppWindowController() {}
// Creates a new app window and adds it to the desktop. This class should
// maintain the ownership of the window.
virtual ShellAppWindow* CreateAppWindow(content::BrowserContext* context,
const Extension* extension) = 0;
// Closes and destroys the app windows. Must be called before the extension
// is destroyed.
virtual void CloseAppWindows() = 0;
};
} // namespace extensions
#endif // EXTENSIONS_SHELL_BROWSER_SHELL_APP_WINDOW_CONTROLLER_H_
......@@ -52,7 +52,6 @@ namespace extensions {
class Extension;
class ShellAppWindow;
class ShellAppWindowController;
// Handles desktop-related tasks for app_shell.
class ShellDesktopController : public DesktopController,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment