summaryrefslogtreecommitdiffstats
path: root/ash/test/overflow_bubble_view_test_api.cc
blob: 59a1096eb1f1b811da90779d969902038a80054c (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
// 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.

#include "ash/test/overflow_bubble_view_test_api.h"

#include "ash/shelf/overflow_bubble_view.h"

namespace ash {
namespace test {

OverflowBubbleViewTestAPI::OverflowBubbleViewTestAPI(
    OverflowBubbleView* bubble_view)
    : bubble_view_(bubble_view) {}

OverflowBubbleViewTestAPI::~OverflowBubbleViewTestAPI() {
}

gfx::Size OverflowBubbleViewTestAPI::GetContentsSize() {
  return bubble_view_->GetContentsSize();
}

void OverflowBubbleViewTestAPI::ScrollByXOffset(int x_offset) {
  bubble_view_->ScrollByXOffset(x_offset);
  bubble_view_->Layout();
}

}  // namespace test
}  // namespace ash