| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_OVERFLOW_BUBBLE_VIEW_TEST_API_ | 5 #ifndef ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ |
| 6 #define ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ | 6 #define ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class Size; | 11 class Size; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 | |
| 16 namespace internal { | |
| 17 class OverflowBubbleView; | 15 class OverflowBubbleView; |
| 18 } | |
| 19 | 16 |
| 20 namespace test { | 17 namespace test { |
| 21 | 18 |
| 22 class OverflowBubbleViewTestAPI { | 19 class OverflowBubbleViewTestAPI { |
| 23 public: | 20 public: |
| 24 explicit OverflowBubbleViewTestAPI(internal::OverflowBubbleView* bubble_view); | 21 explicit OverflowBubbleViewTestAPI(OverflowBubbleView* bubble_view); |
| 25 ~OverflowBubbleViewTestAPI(); | 22 ~OverflowBubbleViewTestAPI(); |
| 26 | 23 |
| 27 // Returns the total width of items included in ShelfView. | 24 // Returns the total width of items included in ShelfView. |
| 28 gfx::Size GetContentsSize(); | 25 gfx::Size GetContentsSize(); |
| 29 | 26 |
| 30 // Emulates scroll operations on OverflowBubble to make invisible last item | 27 // Emulates scroll operations on OverflowBubble to make invisible last item |
| 31 // visible. | 28 // visible. |
| 32 void ScrollByXOffset(int x_offset); | 29 void ScrollByXOffset(int x_offset); |
| 33 | 30 |
| 34 private: | 31 private: |
| 35 internal::OverflowBubbleView* bubble_view_; | 32 OverflowBubbleView* bubble_view_; |
| 36 | 33 |
| 37 DISALLOW_COPY_AND_ASSIGN(OverflowBubbleViewTestAPI); | 34 DISALLOW_COPY_AND_ASSIGN(OverflowBubbleViewTestAPI); |
| 38 }; | 35 }; |
| 39 | 36 |
| 40 } // namespace test | 37 } // namespace test |
| 41 } // namespace ash | 38 } // namespace ash |
| 42 | 39 |
| 43 #endif // ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ | 40 #endif // ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ |
| OLD | NEW |