summaryrefslogtreecommitdiffstats
path: root/ash/test/overflow_bubble_view_test_api.h
blob: 2bd5f2726afa705cf5ae7a7220a163e554367f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_
#define ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_

#include "base/basictypes.h"

namespace gfx {
class Size;
}

namespace ash {
class OverflowBubbleView;

namespace test {

class OverflowBubbleViewTestAPI {
 public:
  explicit OverflowBubbleViewTestAPI(OverflowBubbleView* bubble_view);
  ~OverflowBubbleViewTestAPI();

  // Returns the total width of items included in ShelfView.
  gfx::Size GetContentsSize();

  // Emulates scroll operations on OverflowBubble to make invisible last item
  // visible.
  void ScrollByXOffset(int x_offset);

 private:
  OverflowBubbleView* bubble_view_;

  DISALLOW_COPY_AND_ASSIGN(OverflowBubbleViewTestAPI);
};

}  // namespace test
}  // namespace ash

#endif  // ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_