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

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

Issue 1411833006: Refactoring to make adding ink drop animations easier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Attempt to refactor ink drop animations (wired up chained EventHandler) Created 5 years, 1 month 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 <algorithm> 8 #include <algorithm>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 namespace views { 62 namespace views {
63 63
64 class Background; 64 class Background;
65 class Border; 65 class Border;
66 class ContextMenuController; 66 class ContextMenuController;
67 class DragController; 67 class DragController;
68 class FocusManager; 68 class FocusManager;
69 class FocusTraversable; 69 class FocusTraversable;
70 class InkDropDelegate;
70 class LayoutManager; 71 class LayoutManager;
71 class NativeViewAccessibility; 72 class NativeViewAccessibility;
72 class ScrollView; 73 class ScrollView;
73 class Widget; 74 class Widget;
74 75
75 namespace internal { 76 namespace internal {
76 class PreEventDispatchHandler; 77 class PreEventDispatchHandler;
77 class PostEventDispatchHandler; 78 class PostEventDispatchHandler;
78 class RootView; 79 class RootView;
79 } 80 }
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1127 virtual void ReorderLayers(); 1128 virtual void ReorderLayers();
1128 1129
1129 // This reorders the immediate children of |*parent_layer| to match the 1130 // This reorders the immediate children of |*parent_layer| to match the
1130 // order of the view tree. Child layers which are owned by a view are 1131 // order of the view tree. Child layers which are owned by a view are
1131 // reordered so that they are below any child layers not owned by a view. 1132 // reordered so that they are below any child layers not owned by a view.
1132 // Widget::ReorderNativeViews() should be called to reorder any child layers 1133 // Widget::ReorderNativeViews() should be called to reorder any child layers
1133 // with an associated view. Widget::ReorderNativeViews() may reorder layers 1134 // with an associated view. Widget::ReorderNativeViews() may reorder layers
1134 // below layers owned by a view. 1135 // below layers owned by a view.
1135 virtual void ReorderChildLayers(ui::Layer* parent_layer); 1136 virtual void ReorderChildLayers(ui::Layer* parent_layer);
1136 1137
1138 // Animations ----------------------------------------------------------------
1139
1140 virtual InkDropDelegate* GetInkDropDelegate() const;
1141
1137 // Input --------------------------------------------------------------------- 1142 // Input ---------------------------------------------------------------------
1138 1143
1139 virtual DragInfo* GetDragInfo(); 1144 virtual DragInfo* GetDragInfo();
1140 1145
1141 // Focus --------------------------------------------------------------------- 1146 // Focus ---------------------------------------------------------------------
1142 1147
1143 // Returns last value passed to SetFocusable(). Use IsFocusable() to determine 1148 // Returns last value passed to SetFocusable(). Use IsFocusable() to determine
1144 // if a view can take focus right now. 1149 // if a view can take focus right now.
1145 bool focusable() const { return focusable_; } 1150 bool focusable() const { return focusable_; }
1146 1151
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 // Belongs to this view, but it's reference-counted on some platforms 1567 // Belongs to this view, but it's reference-counted on some platforms
1563 // so we can't use a scoped_ptr. It's dereferenced in the destructor. 1568 // so we can't use a scoped_ptr. It's dereferenced in the destructor.
1564 NativeViewAccessibility* native_view_accessibility_; 1569 NativeViewAccessibility* native_view_accessibility_;
1565 1570
1566 DISALLOW_COPY_AND_ASSIGN(View); 1571 DISALLOW_COPY_AND_ASSIGN(View);
1567 }; 1572 };
1568 1573
1569 } // namespace views 1574 } // namespace views
1570 1575
1571 #endif // UI_VIEWS_VIEW_H_ 1576 #endif // UI_VIEWS_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698