Home | History | Annotate | Download | only in test
      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 class OverflowBubbleView;
     16 
     17 namespace test {
     18 
     19 class OverflowBubbleViewTestAPI {
     20  public:
     21   explicit OverflowBubbleViewTestAPI(OverflowBubbleView* bubble_view);
     22   ~OverflowBubbleViewTestAPI();
     23 
     24   // Returns the total width of items included in ShelfView.
     25   gfx::Size GetContentsSize();
     26 
     27   // Emulates scroll operations on OverflowBubble to make invisible last item
     28   // visible.
     29   void ScrollByXOffset(int x_offset);
     30 
     31  private:
     32   OverflowBubbleView* bubble_view_;
     33 
     34   DISALLOW_COPY_AND_ASSIGN(OverflowBubbleViewTestAPI);
     35 };
     36 
     37 }  // namespace test
     38 }  // namespace ash
     39 
     40 #endif  // ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_
     41