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

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

Issue 2033553003: Add MD ink drop ripple to shelf app items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased (after r398375) Created 4 years, 6 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 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/common/shelf/shelf_item_delegate.h" 8 #include "ash/common/shelf/shelf_item_delegate.h"
9 #include "ash/common/shelf/shelf_item_types.h" 9 #include "ash/common/shelf/shelf_item_types.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Rect; 13 class Rect;
14 class Size; 14 class Size;
15 } 15 }
16 16
17 namespace ui { 17 namespace ui {
18 class Event; 18 class Event;
19 } 19 }
20 20
21 namespace views { 21 namespace views {
22 class Button; 22 class Button;
23 class InkDrop;
23 } 24 }
24 25
25 namespace ash { 26 namespace ash {
26 class OverflowBubble; 27 class OverflowBubble;
27 class ShelfButton; 28 class ShelfButton;
28 class ShelfButtonPressedMetricTracker; 29 class ShelfButtonPressedMetricTracker;
29 class ShelfDelegate; 30 class ShelfDelegate;
30 class ShelfTooltipManager; 31 class ShelfTooltipManager;
31 class ShelfView; 32 class ShelfView;
32 33
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 // Returns the preferred size of |shelf_view_|. 79 // Returns the preferred size of |shelf_view_|.
79 gfx::Size GetPreferredSize(); 80 gfx::Size GetPreferredSize();
80 81
81 // Returns the button size. 82 // Returns the button size.
82 int GetButtonSize(); 83 int GetButtonSize();
83 84
84 // Returns the button space size. 85 // Returns the button space size.
85 int GetButtonSpacing(); 86 int GetButtonSpacing();
86 87
87 // Wrapper for ShelfView::ButtonPressed. 88 // Wrapper for ShelfView::ButtonPressed.
88 void ButtonPressed(views::Button* sender, const ui::Event& event); 89 void ButtonPressed(views::Button* sender,
90 const ui::Event& event,
91 views::InkDrop* ink_drop);
89 92
90 // Wrapper for ShelfView::SameDragType. 93 // Wrapper for ShelfView::SameDragType.
91 bool SameDragType(ShelfItemType typea, ShelfItemType typeb) const; 94 bool SameDragType(ShelfItemType typea, ShelfItemType typeb) const;
92 95
93 // Sets ShelfDelegate. 96 // Sets ShelfDelegate.
94 void SetShelfDelegate(ShelfDelegate* delegate); 97 void SetShelfDelegate(ShelfDelegate* delegate);
95 98
96 // Returns re-insertable bounds in screen. 99 // Returns re-insertable bounds in screen.
97 gfx::Rect GetBoundsForDragInsertInScreen(); 100 gfx::Rect GetBoundsForDragInsertInScreen();
98 101
99 // Returns true if item is ripped off. 102 // Returns true if item is ripped off.
100 bool IsRippedOffFromShelf(); 103 bool IsRippedOffFromShelf();
101 104
102 // Returns true if an item is ripped off and entered into shelf. 105 // Returns true if an item is ripped off and entered into shelf.
103 bool DraggedItemFromOverflowToShelf(); 106 bool DraggedItemFromOverflowToShelf();
104 107
105 // An accessor for |shelf_button_pressed_metric_tracker_|. 108 // An accessor for |shelf_button_pressed_metric_tracker_|.
106 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker(); 109 ShelfButtonPressedMetricTracker* shelf_button_pressed_metric_tracker();
107 110
108 private: 111 private:
109 ShelfView* shelf_view_; 112 ShelfView* shelf_view_;
110 113
111 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI); 114 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI);
112 }; 115 };
113 116
114 } // namespace test 117 } // namespace test
115 } // namespace ash 118 } // namespace ash
116 119
117 #endif // ASH_TEST_SHELF_VIEW_TEST_API_H_ 120 #endif // ASH_TEST_SHELF_VIEW_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698