Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1315)

Side by Side Diff: ash/common/system/chromeos/palette/palette_utils.h

Issue 2644713002: cros: Use runtime stylus detection for ash palette. (Closed)
Patch Set: Explicitly initialize properties to false Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 { 10 namespace gfx {
11 class Point; 11 class Point;
12 } 12 }
13 13
14 namespace ash { 14 namespace ash {
15 15
16 // Returns true if the palette feature is enabled. The palette itself may have 16 // Returns true if there is a stylus input device on the internal display. This
17 // been disabled by the user. 17 // will return false even if there is a stylus input device until hardware
18 ASH_EXPORT bool IsPaletteFeatureEnabled(); 18 // probing is complete (see ui::InputDeviceEventObserver).
19 ASH_EXPORT bool HasStylusInput();
James Cook 2017/02/06 23:06:39 nit: The functions in this class should be in eith
jdufault 2017/02/08 02:06:21 Done.
19 20
20 // Returns true if the palette should be shown on every display. 21 // Returns true if the palette should be shown on every display.
21 ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay(); 22 ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay();
22 23
23 // Returns true if either the palette icon or the palette widget contain the 24 // Returns true if either the palette icon or the palette widget contain the
24 // given point (in screen space). 25 // given point (in screen space).
25 ASH_EXPORT bool PaletteContainsPointInScreen(const gfx::Point& point); 26 ASH_EXPORT bool PaletteContainsPointInScreen(const gfx::Point& point);
26 27
27 } // namespace ash 28 } // namespace ash
28 29
29 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_ 30 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_PALETTE_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698