Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: ash/test/overflow_bubble_view_test_api.h

Issue 1866403005: Fix rtl shelf overflow bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add unit test Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ 5 #ifndef ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_
6 #define ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ 6 #define ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 9
10 namespace gfx { 10 namespace gfx {
11 class Size; 11 class Size;
12 } 12 }
13 13
14 namespace views {
15 class BubbleFrameView;
16 }
17
14 namespace ash { 18 namespace ash {
15 class OverflowBubbleView; 19 class OverflowBubbleView;
16 20
17 namespace test { 21 namespace test {
18 22
19 class OverflowBubbleViewTestAPI { 23 class OverflowBubbleViewTestAPI {
20 public: 24 public:
21 explicit OverflowBubbleViewTestAPI(OverflowBubbleView* bubble_view); 25 explicit OverflowBubbleViewTestAPI(OverflowBubbleView* bubble_view);
22 ~OverflowBubbleViewTestAPI(); 26 ~OverflowBubbleViewTestAPI();
23 27
24 // Returns the total width of items included in ShelfView. 28 // Returns the total width of items included in ShelfView.
25 gfx::Size GetContentsSize(); 29 gfx::Size GetContentsSize();
26 30
27 // Emulates scroll operations on OverflowBubble to make invisible last item 31 // Emulates scroll operations on OverflowBubble to make invisible last item
28 // visible. 32 // visible.
29 void ScrollByXOffset(int x_offset); 33 void ScrollByXOffset(int x_offset);
30 34
35 // Returns the NonClientFrameView for the bubble.
36 views::BubbleFrameView* GetBubbleFrameView();
37
31 private: 38 private:
32 OverflowBubbleView* bubble_view_; 39 OverflowBubbleView* bubble_view_;
33 40
34 DISALLOW_COPY_AND_ASSIGN(OverflowBubbleViewTestAPI); 41 DISALLOW_COPY_AND_ASSIGN(OverflowBubbleViewTestAPI);
35 }; 42 };
36 43
37 } // namespace test 44 } // namespace test
38 } // namespace ash 45 } // namespace ash
39 46
40 #endif // ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_ 47 #endif // ASH_TEST_OVERFLOW_BUBBLE_VIEW_TEST_API_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698