| 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/macros.h" | 8 #include "base/macros.h" |
| 9 | 9 |
| 10 namespace gfx { | 10 namespace gfx { |
| 11 class Size; | 11 class Size; |
| 12 } | 12 } |
| 13 | 13 |
| 14 namespace views { |
| 15 class BubbleFrameView; |
| 16 } |
| 17 |
| 14 namespace ash { | 18 namespace ash { |
| 15 class OverflowBubbleView; | 19 class OverflowBubbleView; |
| 16 | 20 |
| 17 namespace test { | 21 namespace test { |
| 18 | 22 |
| 19 class OverflowBubbleViewTestAPI { | 23 class OverflowBubbleViewTestAPI { |
| 20 public: | 24 public: |
| 21 explicit OverflowBubbleViewTestAPI(OverflowBubbleView* bubble_view); | 25 explicit OverflowBubbleViewTestAPI(OverflowBubbleView* bubble_view); |
| 22 ~OverflowBubbleViewTestAPI(); | 26 ~OverflowBubbleViewTestAPI(); |
| 23 | 27 |
| 24 // Returns the total width of items included in ShelfView. | 28 // Returns the total width of items included in ShelfView. |
| 25 gfx::Size GetContentsSize(); | 29 gfx::Size GetContentsSize(); |
| 26 | 30 |
| 27 // Emulates scroll operations on OverflowBubble to make invisible last item | 31 // Emulates scroll operations on OverflowBubble to make invisible last item |
| 28 // visible. | 32 // visible. |
| 29 void ScrollByXOffset(int x_offset); | 33 void ScrollByXOffset(int x_offset); |
| 30 | 34 |
| 35 // Returns the NonClientFrameView for the bubble. |
| 36 views::BubbleFrameView* GetBubbleFrameView(); |
| 37 |
| 31 private: | 38 private: |
| 32 OverflowBubbleView* bubble_view_; | 39 OverflowBubbleView* bubble_view_; |
| 33 | 40 |
| 34 DISALLOW_COPY_AND_ASSIGN(OverflowBubbleViewTestAPI); | 41 DISALLOW_COPY_AND_ASSIGN(OverflowBubbleViewTestAPI); |
| 35 }; | 42 }; |
| 36 | 43 |
| 37 } // namespace test | 44 } // namespace test |
| 38 } // namespace ash | 45 } // namespace ash |
| 39 | 46 |
| 40 #endif // ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ | 47 #endif // ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ |
| OLD | NEW |