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

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

Issue 2712293002: Remove non-MD code from ShelfButton (Closed)
Patch Set: Rebased Created 3 years, 9 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/common/shelf/shelf_item_types.h" 8 #include "ash/common/shelf/shelf_item_types.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 10
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // An accessor for overflow bubble. 90 // An accessor for overflow bubble.
91 OverflowBubble* overflow_bubble(); 91 OverflowBubble* overflow_bubble();
92 92
93 // An accessor for overflow button. 93 // An accessor for overflow button.
94 OverflowButton* overflow_button() const; 94 OverflowButton* overflow_button() const;
95 95
96 // Returns the preferred size of |shelf_view_|. 96 // Returns the preferred size of |shelf_view_|.
97 gfx::Size GetPreferredSize(); 97 gfx::Size GetPreferredSize();
98 98
99 // Returns the button size.
100 int GetButtonSize();
101
102 // Returns the button space size.
103 int GetButtonSpacing();
104
105 // Returns minimum distance before drag starts. 99 // Returns minimum distance before drag starts.
106 int GetMinimumDragDistance() const; 100 int GetMinimumDragDistance() const;
107 101
108 // Wrapper for ShelfView::ButtonPressed. 102 // Wrapper for ShelfView::ButtonPressed.
109 void ButtonPressed(views::Button* sender, 103 void ButtonPressed(views::Button* sender,
110 const ui::Event& event, 104 const ui::Event& event,
111 views::InkDrop* ink_drop); 105 views::InkDrop* ink_drop);
112 106
113 // Wrapper for ShelfView::SameDragType. 107 // Wrapper for ShelfView::SameDragType.
114 bool SameDragType(ShelfItemType typea, ShelfItemType typeb) const; 108 bool SameDragType(ShelfItemType typea, ShelfItemType typeb) const;
(...skipping 16 matching lines...) Expand all
131 private: 125 private:
132 ShelfView* shelf_view_; 126 ShelfView* shelf_view_;
133 127
134 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI); 128 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI);
135 }; 129 };
136 130
137 } // namespace test 131 } // namespace test
138 } // namespace ash 132 } // namespace ash
139 133
140 #endif // ASH_TEST_SHELF_VIEW_TEST_API_H_ 134 #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