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

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

Issue 2825383003: Fix stylus tools palette. (Closed)
Patch Set: Load palette_tray all the time. Only check when show it Created 3 years, 8 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
« no previous file with comments | « ash/system/palette/palette_tray.cc ('k') | ash/system/palette/palette_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SYSTEM_PALETTE_PALETTE_UTILS_H_ 5 #ifndef ASH_SYSTEM_PALETTE_PALETTE_UTILS_H_
6 #define ASH_SYSTEM_PALETTE_PALETTE_UTILS_H_ 6 #define ASH_SYSTEM_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 namespace palette_utils { 15 namespace palette_utils {
16 16
17 // Returns true if there is a stylus input device on the internal display. This 17 // Returns true if there is a stylus input device on the internal display.
jdufault 2017/04/26 18:50:43 Revert this change?
wutao 2017/04/26 22:01:50 Done.
18 // will return false even if there is a stylus input device until hardware
19 // probing is complete (see ui::InputDeviceEventObserver).
20 ASH_EXPORT bool HasStylusInput(); 18 ASH_EXPORT bool HasStylusInput();
jdufault 2017/04/26 18:50:43 Does this still need to be in the header?
wutao 2017/04/26 22:01:50 Yes. There are multiple sites calling this.
21 19
22 // Returns true if the palette should be shown on every display. 20 // Returns true if the palette should be shown on every display.
23 ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay(); 21 ASH_EXPORT bool IsPaletteEnabledOnEveryDisplay();
24 22
23 // Returns true if we should show palette.
jdufault 2017/04/26 18:50:42 Can you be a bit more detailed in this comment, ie
wutao 2017/04/26 22:01:50 Done.
24 ASH_EXPORT bool ShouldShowPalette();
25
25 // Returns true if either the palette icon or the palette widget contain the 26 // Returns true if either the palette icon or the palette widget contain the
26 // given point (in screen space). 27 // given point (in screen space).
27 ASH_EXPORT bool PaletteContainsPointInScreen(const gfx::Point& point); 28 ASH_EXPORT bool PaletteContainsPointInScreen(const gfx::Point& point);
28 29
29 } // namespace palette_utils 30 } // namespace palette_utils
30 } // namespace ash 31 } // namespace ash
31 32
32 #endif // ASH_SYSTEM_PALETTE_PALETTE_UTILS_H_ 33 #endif // ASH_SYSTEM_PALETTE_PALETTE_UTILS_H_
OLDNEW
« no previous file with comments | « ash/system/palette/palette_tray.cc ('k') | ash/system/palette/palette_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698