OLD | NEW |
---|---|
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 ASH_TEST_SHELF_VIEW_TEST_API_H_ | 5 #ifndef ASH_TEST_SHELF_VIEW_TEST_API_H_ |
6 #define ASH_TEST_SHELF_VIEW_TEST_API_H_ | 6 #define ASH_TEST_SHELF_VIEW_TEST_API_H_ |
7 | 7 |
8 #include "ash/public/cpp/shelf_item.h" | 8 #include "ash/public/cpp/shelf_item.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
109 | 109 |
110 // Sets ShelfDelegate. | 110 // Sets ShelfDelegate. |
111 void SetShelfDelegate(ShelfDelegate* delegate); | 111 void SetShelfDelegate(ShelfDelegate* delegate); |
112 | 112 |
113 // Returns re-insertable bounds in screen. | 113 // Returns re-insertable bounds in screen. |
114 gfx::Rect GetBoundsForDragInsertInScreen(); | 114 gfx::Rect GetBoundsForDragInsertInScreen(); |
115 | 115 |
116 // Returns true if item is ripped off. | 116 // Returns true if item is ripped off. |
117 bool IsRippedOffFromShelf(); | 117 bool IsRippedOffFromShelf(); |
118 | 118 |
119 // Returns true if an item is ripped off and entered into shelf. | 119 // Returns true if an item is ripped off one shelf and entered into other |
msw
2017/04/17 19:29:10
nit: // True when an item is dragged from one shel
sammiequon
2017/04/17 23:42:29
Done.
| |
120 bool DraggedItemFromOverflowToShelf(); | 120 // shelf. |
121 bool DraggedItemFromShelfToOtherShelf(); | |
msw
2017/04/17 19:29:10
nit: rename to match member name
sammiequon
2017/04/17 23:42:29
Done.
| |
121 | 122 |
122 // An accessor for |shelf_button_pressed_metric_tracker_|. | 123 // An accessor for |shelf_button_pressed_metric_tracker_|. |
123 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker(); | 124 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker(); |
124 | 125 |
125 private: | 126 private: |
126 ShelfView* shelf_view_; | 127 ShelfView* shelf_view_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI); | 129 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI); |
129 }; | 130 }; |
130 | 131 |
131 } // namespace test | 132 } // namespace test |
132 } // namespace ash | 133 } // namespace ash |
133 | 134 |
134 #endif // ASH_TEST_SHELF_VIEW_TEST_API_H_ | 135 #endif // ASH_TEST_SHELF_VIEW_TEST_API_H_ |
OLD | NEW |