OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ash/test/overflow_bubble_view_test_api.h" | 5 #include "ash/test/overflow_bubble_view_test_api.h" |
6 | 6 |
7 #include "ash/shelf/overflow_bubble_view.h" | 7 #include "ash/shelf/overflow_bubble_view.h" |
8 | 8 |
9 namespace ash { | 9 namespace ash { |
10 namespace test { | 10 namespace test { |
11 | 11 |
12 OverflowBubbleViewTestAPI::OverflowBubbleViewTestAPI( | 12 OverflowBubbleViewTestAPI::OverflowBubbleViewTestAPI( |
13 internal::OverflowBubbleView* bubble_view) | 13 OverflowBubbleView* bubble_view) |
14 : bubble_view_(bubble_view) { | 14 : bubble_view_(bubble_view) {} |
15 } | |
16 | 15 |
17 OverflowBubbleViewTestAPI::~OverflowBubbleViewTestAPI() { | 16 OverflowBubbleViewTestAPI::~OverflowBubbleViewTestAPI() { |
18 } | 17 } |
19 | 18 |
20 gfx::Size OverflowBubbleViewTestAPI::GetContentsSize() { | 19 gfx::Size OverflowBubbleViewTestAPI::GetContentsSize() { |
21 return bubble_view_->GetContentsSize(); | 20 return bubble_view_->GetContentsSize(); |
22 } | 21 } |
23 | 22 |
24 void OverflowBubbleViewTestAPI::ScrollByXOffset(int x_offset) { | 23 void OverflowBubbleViewTestAPI::ScrollByXOffset(int x_offset) { |
25 bubble_view_->ScrollByXOffset(x_offset); | 24 bubble_view_->ScrollByXOffset(x_offset); |
26 bubble_view_->Layout(); | 25 bubble_view_->Layout(); |
27 } | 26 } |
28 | 27 |
29 } // namespace test | 28 } // namespace test |
30 } // namespace ash | 29 } // namespace ash |
OLD | NEW |