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

Side by Side Diff: ash/sticky_keys/sticky_keys_overlay.h

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/sticky_keys/sticky_keys_controller.cc ('k') | ash/sticky_keys/sticky_keys_overlay.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_STICKY_KEYS_STICKY_KEYS_OVERLAY_H_ 5 #ifndef ASH_STICKY_KEYS_STICKY_KEYS_OVERLAY_H_
6 #define ASH_STICKY_KEYS_STICKY_KEYS_OVERLAY_H_ 6 #define ASH_STICKY_KEYS_STICKY_KEYS_OVERLAY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 24 matching lines...) Expand all
35 ~StickyKeysOverlay() override; 35 ~StickyKeysOverlay() override;
36 36
37 // Shows or hides the overlay. 37 // Shows or hides the overlay.
38 void Show(bool visible); 38 void Show(bool visible);
39 39
40 void SetModifierVisible(ui::EventFlags modifier, bool visible); 40 void SetModifierVisible(ui::EventFlags modifier, bool visible);
41 41
42 bool GetModifierVisible(ui::EventFlags modifier); 42 bool GetModifierVisible(ui::EventFlags modifier);
43 43
44 // Updates the overlay with the current state of a sticky key modifier. 44 // Updates the overlay with the current state of a sticky key modifier.
45 void SetModifierKeyState(ui::EventFlags modifier, 45 void SetModifierKeyState(ui::EventFlags modifier, StickyKeyState state);
46 StickyKeyState state);
47 46
48 // Get the current state of the sticky key modifier in the overlay. 47 // Get the current state of the sticky key modifier in the overlay.
49 StickyKeyState GetModifierKeyState(ui::EventFlags modifier); 48 StickyKeyState GetModifierKeyState(ui::EventFlags modifier);
50 49
51 // Returns true if the overlay is currently visible. If the overlay is 50 // Returns true if the overlay is currently visible. If the overlay is
52 // animating, the returned value is the target of the animation. 51 // animating, the returned value is the target of the animation.
53 bool is_visible() { return is_visible_; } 52 bool is_visible() { return is_visible_; }
54 53
55 // Returns the underlying views::Widget for testing purposes. The returned 54 // Returns the underlying views::Widget for testing purposes. The returned
56 // widget is owned by StickyKeysOverlay. 55 // widget is owned by StickyKeysOverlay.
(...skipping 10 matching lines...) Expand all
67 66
68 bool is_visible_; 67 bool is_visible_;
69 std::unique_ptr<views::Widget> overlay_widget_; 68 std::unique_ptr<views::Widget> overlay_widget_;
70 std::unique_ptr<StickyKeysOverlayView> overlay_view_; 69 std::unique_ptr<StickyKeysOverlayView> overlay_view_;
71 gfx::Size widget_size_; 70 gfx::Size widget_size_;
72 }; 71 };
73 72
74 } // namespace ash 73 } // namespace ash
75 74
76 #endif // ASH_STICKY_KEYS_STICKY_KEYS_OVERLAY_H_ 75 #endif // ASH_STICKY_KEYS_STICKY_KEYS_OVERLAY_H_
OLDNEW
« no previous file with comments | « ash/sticky_keys/sticky_keys_controller.cc ('k') | ash/sticky_keys/sticky_keys_overlay.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698