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

Side by Side Diff: ash/test/shelf_view_test_api.h

Issue 2820693004: shelf: Allow dragging items from main shelf to overflow shelf. (Closed)
Patch Set: Rebased. Created 3 years, 7 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 | « ash/shelf/shelf_view_unittest.cc ('k') | ash/test/shelf_view_test_api.cc » ('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 (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
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_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | ash/test/shelf_view_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698