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

Side by Side Diff: ui/views/view.h

Issue 1518543002: Adds MD ink ripple animations to buttons within location bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds MD ink ripple animations to buttons within location bar (fixed test build) Created 4 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_VIEW_H_ 5 #ifndef UI_VIEWS_VIEW_H_
6 #define UI_VIEWS_VIEW_H_ 6 #define UI_VIEWS_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 // to scroll. ScrollView interprets a return value of 0 (or negative) 991 // to scroll. ScrollView interprets a return value of 0 (or negative)
992 // to scroll by a default amount. 992 // to scroll by a default amount.
993 // 993 //
994 // See VariableRowHeightScrollHelper and FixedRowHeightScrollHelper for 994 // See VariableRowHeightScrollHelper and FixedRowHeightScrollHelper for
995 // implementations of common cases. 995 // implementations of common cases.
996 virtual int GetPageScrollIncrement(ScrollView* scroll_view, 996 virtual int GetPageScrollIncrement(ScrollView* scroll_view,
997 bool is_horizontal, bool is_positive); 997 bool is_horizontal, bool is_positive);
998 virtual int GetLineScrollIncrement(ScrollView* scroll_view, 998 virtual int GetLineScrollIncrement(ScrollView* scroll_view,
999 bool is_horizontal, bool is_positive); 999 bool is_horizontal, bool is_positive);
1000 1000
1001 // Anchored popup ------------------------------------------------------------
1002 // Called when a bubble that is anchored on this View is closing.
1003 virtual void OnBubbleClosing() {}
Peter Kasting 2016/01/26 16:59:35 I'm not terribly keen on adding this sort of speci
msw 2016/01/26 17:42:32 Or observe the bubble as a widget observer.
varkha 2016/01/26 17:45:45 I will try to find a way around it.
varkha 2016/01/26 17:45:45 Thanks, msw@, I will take a look at what's involve
1004
1001 protected: 1005 protected:
1002 // Used to track a drag. RootView passes this into 1006 // Used to track a drag. RootView passes this into
1003 // ProcessMousePressed/Dragged. 1007 // ProcessMousePressed/Dragged.
1004 struct DragInfo { 1008 struct DragInfo {
1005 // Sets possible_drag to false and start_x/y to 0. This is invoked by 1009 // Sets possible_drag to false and start_x/y to 0. This is invoked by
1006 // RootView prior to invoke ProcessMousePressed. 1010 // RootView prior to invoke ProcessMousePressed.
1007 void Reset(); 1011 void Reset();
1008 1012
1009 // Sets possible_drag to true and start_pt to the specified point. 1013 // Sets possible_drag to true and start_pt to the specified point.
1010 // This is invoked by the target view if it detects the press may generate 1014 // This is invoked by the target view if it detects the press may generate
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
1574 // Belongs to this view, but it's reference-counted on some platforms 1578 // Belongs to this view, but it's reference-counted on some platforms
1575 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1579 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1576 NativeViewAccessibility* native_view_accessibility_; 1580 NativeViewAccessibility* native_view_accessibility_;
1577 1581
1578 DISALLOW_COPY_AND_ASSIGN(View); 1582 DISALLOW_COPY_AND_ASSIGN(View);
1579 }; 1583 };
1580 1584
1581 } // namespace views 1585 } // namespace views
1582 1586
1583 #endif // UI_VIEWS_VIEW_H_ 1587 #endif // UI_VIEWS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698