shell_delegate.cc 1010 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // Copyright 2019 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 "ash/shell_delegate.h"
  5. namespace ash {
  6. bool ShellDelegate::AllowDefaultTouchActions(gfx::NativeWindow window) {
  7. return true;
  8. }
  9. bool ShellDelegate::ShouldWaitForTouchPressAck(gfx::NativeWindow window) {
  10. return false;
  11. }
  12. bool ShellDelegate::IsTabDrag(const ui::OSExchangeData& drop_data) {
  13. return false;
  14. }
  15. media_session::MediaSessionService* ShellDelegate::GetMediaSessionService() {
  16. return nullptr;
  17. }
  18. bool ShellDelegate::IsUiDevToolsStarted() const {
  19. return false;
  20. }
  21. int ShellDelegate::GetUiDevToolsPort() const {
  22. return -1;
  23. }
  24. const GURL& ShellDelegate::GetLastCommittedURLForWindowIfAny(
  25. aura::Window* window) {
  26. return GURL::EmptyGURL();
  27. }
  28. void ShellDelegate::ShouldExitFullscreenBeforeLock(
  29. ShellDelegate::ShouldExitFullscreenCallback callback) {
  30. std::move(callback).Run(false);
  31. }
  32. } // namespace ash