OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_ |
6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 | 9 |
| 10 namespace gfx { |
| 11 class Point; |
| 12 } |
| 13 |
10 namespace ash { | 14 namespace ash { |
11 | 15 |
12 // Returns true if the palette feature is enabled. The palette itself may have | 16 // Returns true if the palette feature is enabled. The palette itself may have |
13 // been disabled by the user. | 17 // been disabled by the user. |
14 ASH_EXPORT bool IsPaletteFeatureEnabled(); | 18 ASH_EXPORT bool IsPaletteFeatureEnabled(); |
15 | 19 |
16 // Are experimental palette features enabled? | 20 // Are experimental palette features enabled? |
17 ASH_EXPORT bool ArePaletteExperimentalFeaturesEnabled(); | 21 ASH_EXPORT bool ArePaletteExperimentalFeaturesEnabled(); |
18 | 22 |
19 // Returns true if the palette should be shown on every display. | 23 // Returns true if the palette should be shown on every display. |
20 ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay(); | 24 ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay(); |
21 | 25 |
| 26 // Returns true if either the palette icon or the palette widget contain the |
| 27 // given point (in screen space). |
| 28 ASH_EXPORT bool PaletteContainsPointInScreen(const gfx::Point& point); |
| 29 |
22 } // namespace ash | 30 } // namespace ash |
23 | 31 |
24 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_ | 32 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_ |
OLD | NEW |