Updating XTBs based on .GRDs from branch master
[chromium-blink-merge.git] / ash / test / overflow_bubble_view_test_api.cc
blob59a1096eb1f1b811da90779d969902038a80054c
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.
5 #include "ash/test/overflow_bubble_view_test_api.h"
7 #include "ash/shelf/overflow_bubble_view.h"
9 namespace ash {
10 namespace test {
12 OverflowBubbleViewTestAPI::OverflowBubbleViewTestAPI(
13 OverflowBubbleView* bubble_view)
14 : bubble_view_(bubble_view) {}
16 OverflowBubbleViewTestAPI::~OverflowBubbleViewTestAPI() {
19 gfx::Size OverflowBubbleViewTestAPI::GetContentsSize() {
20 return bubble_view_->GetContentsSize();
23 void OverflowBubbleViewTestAPI::ScrollByXOffset(int x_offset) {
24 bubble_view_->ScrollByXOffset(x_offset);
25 bubble_view_->Layout();
28 } // namespace test
29 } // namespace ash