app_types_util.cc 694 B

1234567891011121314151617181920212223
  1. // Copyright 2020 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/public/cpp/app_types_util.h"
  5. #include "ash/constants/app_types.h"
  6. #include "ui/aura/client/aura_constants.h"
  7. #include "ui/aura/window.h"
  8. namespace ash {
  9. bool IsArcWindow(const aura::Window* window) {
  10. return window && window->GetProperty(aura::client::kAppType) ==
  11. static_cast<int>(ash::AppType::ARC_APP);
  12. }
  13. bool IsLacrosWindow(const aura::Window* window) {
  14. return window->GetProperty(aura::client::kAppType) ==
  15. static_cast<int>(ash::AppType::LACROS);
  16. }
  17. } // namespace ash