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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 105 |
106 // Wrapper for ShelfView::SameDragType. | 106 // Wrapper for ShelfView::SameDragType. |
107 bool SameDragType(ShelfItemType typea, ShelfItemType typeb) const; | 107 bool SameDragType(ShelfItemType typea, ShelfItemType typeb) const; |
108 | 108 |
109 // Returns re-insertable bounds in screen. | 109 // Returns re-insertable bounds in screen. |
110 gfx::Rect GetBoundsForDragInsertInScreen(); | 110 gfx::Rect GetBoundsForDragInsertInScreen(); |
111 | 111 |
112 // Returns true if item is ripped off. | 112 // Returns true if item is ripped off. |
113 bool IsRippedOffFromShelf(); | 113 bool IsRippedOffFromShelf(); |
114 | 114 |
115 // Returns true if an item is ripped off and entered into shelf. | 115 // Returns true when an item is dragged from one shelf to another (eg. |
116 bool DraggedItemFromOverflowToShelf(); | 116 // overflow). |
| 117 bool DraggedItemToAnotherShelf(); |
117 | 118 |
118 // An accessor for |shelf_button_pressed_metric_tracker_|. | 119 // An accessor for |shelf_button_pressed_metric_tracker_|. |
119 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker(); | 120 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker(); |
120 | 121 |
121 private: | 122 private: |
122 ShelfView* shelf_view_; | 123 ShelfView* shelf_view_; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI); | 125 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI); |
125 }; | 126 }; |
126 | 127 |
127 } // namespace test | 128 } // namespace test |
128 } // namespace ash | 129 } // namespace ash |
129 | 130 |
130 #endif // ASH_TEST_SHELF_VIEW_TEST_API_H_ | 131 #endif // ASH_TEST_SHELF_VIEW_TEST_API_H_ |
OLD | NEW |