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