shell_app_window_client.cc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. #include "extensions/shell/browser/shell_app_window_client.h"
  5. #include <vector>
  6. #include "extensions/browser/app_window/app_window.h"
  7. #include "extensions/shell/browser/shell_app_delegate.h"
  8. namespace extensions {
  9. ShellAppWindowClient::ShellAppWindowClient() = default;
  10. ShellAppWindowClient::~ShellAppWindowClient() = default;
  11. AppWindow* ShellAppWindowClient::CreateAppWindow(
  12. content::BrowserContext* context,
  13. const Extension* extension) {
  14. return new AppWindow(context, std::make_unique<ShellAppDelegate>(),
  15. extension);
  16. }
  17. AppWindow* ShellAppWindowClient::CreateAppWindowForLockScreenAction(
  18. content::BrowserContext* context,
  19. const Extension* extension,
  20. api::app_runtime::ActionType action) {
  21. return nullptr;
  22. }
  23. void ShellAppWindowClient::OpenDevToolsWindow(
  24. content::WebContents* web_contents,
  25. base::OnceClosure callback) {
  26. NOTIMPLEMENTED();
  27. }
  28. bool ShellAppWindowClient::IsCurrentChannelOlderThanDev() {
  29. return false;
  30. }
  31. } // namespace extensions