palette_utils.h 752 B

123456789101112131415161718192021222324252627
  1. // Copyright 2016 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. #ifndef ASH_SYSTEM_PALETTE_PALETTE_UTILS_H_
  5. #define ASH_SYSTEM_PALETTE_PALETTE_UTILS_H_
  6. #include "ash/ash_export.h"
  7. namespace gfx {
  8. class Point;
  9. }
  10. namespace ash {
  11. namespace palette_utils {
  12. // Returns true if either the palette icon or the palette widget contain the
  13. // given point (in screen space).
  14. ASH_EXPORT bool PaletteContainsPointInScreen(const gfx::Point& point);
  15. // Returns true if we are in a user session that can show the stylus tools.
  16. ASH_EXPORT bool IsInUserSession();
  17. } // namespace palette_utils
  18. } // namespace ash
  19. #endif // ASH_SYSTEM_PALETTE_PALETTE_UTILS_H_