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

Side by Side Diff: ui/views/animation/ink_drop.h

Issue 2001843002: Use ink drop hover for focus states on toolbar buttons and location (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layout 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 | « ui/views/animation/button_ink_drop_delegate.cc ('k') | ui/views/animation/ink_drop_delegate.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 UI_VIEWS_ANIMATION_INK_DROP_H_ 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_H_
6 #define UI_VIEWS_ANIMATION_INK_DROP_H_ 6 #define UI_VIEWS_ANIMATION_INK_DROP_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 29 matching lines...) Expand all
40 40
41 // Immediately snaps the InkDropState to ACTIVATED. This more specific 41 // Immediately snaps the InkDropState to ACTIVATED. This more specific
42 // implementation of the non-existent SnapToState(InkDropState) function is 42 // implementation of the non-existent SnapToState(InkDropState) function is
43 // the only one available because it was the only InkDropState that clients 43 // the only one available because it was the only InkDropState that clients
44 // needed to skip animations for. 44 // needed to skip animations for.
45 virtual void SnapToActivated() = 0; 45 virtual void SnapToActivated() = 0;
46 46
47 // Enables or disables the hover state. 47 // Enables or disables the hover state.
48 virtual void SetHovered(bool is_hovered) = 0; 48 virtual void SetHovered(bool is_hovered) = 0;
49 49
50 // Enables or disables the focus state.
51 virtual void SetFocused(bool is_focused) = 0;
52
50 protected: 53 protected:
51 InkDrop() {} 54 InkDrop() {}
52 55
53 private: 56 private:
54 DISALLOW_COPY_AND_ASSIGN(InkDrop); 57 DISALLOW_COPY_AND_ASSIGN(InkDrop);
55 }; 58 };
56 59
57 } // namespace views 60 } // namespace views
58 61
59 #endif // UI_VIEWS_ANIMATION_INK_DROP_H_ 62 #endif // UI_VIEWS_ANIMATION_INK_DROP_H_
OLDNEW
« no previous file with comments | « ui/views/animation/button_ink_drop_delegate.cc ('k') | ui/views/animation/ink_drop_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698