OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/shelf_view_test_api.h" | 5 #include "ash/test/shelf_view_test_api.h" |
6 | 6 |
7 #include "ash/shelf/overflow_button.h" | 7 #include "ash/shelf/overflow_button.h" |
8 #include "ash/shelf/shelf_button.h" | 8 #include "ash/shelf/shelf_button.h" |
9 #include "ash/shelf/shelf_constants.h" | 9 #include "ash/shelf/shelf_constants.h" |
10 #include "ash/shelf/shelf_model.h" | 10 #include "ash/shelf/shelf_model.h" |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // OnBoundsAnimatorDone is called. | 94 // OnBoundsAnimatorDone is called. |
95 base::MessageLoop::current()->Run(); | 95 base::MessageLoop::current()->Run(); |
96 | 96 |
97 shelf_view_->bounds_animator_->RemoveObserver(observer.get()); | 97 shelf_view_->bounds_animator_->RemoveObserver(observer.get()); |
98 } | 98 } |
99 | 99 |
100 OverflowBubble* ShelfViewTestAPI::overflow_bubble() { | 100 OverflowBubble* ShelfViewTestAPI::overflow_bubble() { |
101 return shelf_view_->overflow_bubble_.get(); | 101 return shelf_view_->overflow_bubble_.get(); |
102 } | 102 } |
103 | 103 |
| 104 ShelfTooltipManager* ShelfViewTestAPI::tooltip_manager() { |
| 105 return &shelf_view_->tooltip_; |
| 106 } |
| 107 |
104 gfx::Size ShelfViewTestAPI::GetPreferredSize() { | 108 gfx::Size ShelfViewTestAPI::GetPreferredSize() { |
105 return shelf_view_->GetPreferredSize(); | 109 return shelf_view_->GetPreferredSize(); |
106 } | 110 } |
107 | 111 |
108 int ShelfViewTestAPI::GetButtonSize() { | 112 int ShelfViewTestAPI::GetButtonSize() { |
109 return kShelfButtonSize; | 113 return kShelfButtonSize; |
110 } | 114 } |
111 | 115 |
112 int ShelfViewTestAPI::GetButtonSpacing() { | 116 int ShelfViewTestAPI::GetButtonSpacing() { |
113 return kShelfButtonSpacing; | 117 return kShelfButtonSpacing; |
(...skipping 25 matching lines...) Expand all Loading... |
139 return shelf_view_->dragged_off_from_overflow_to_shelf_; | 143 return shelf_view_->dragged_off_from_overflow_to_shelf_; |
140 } | 144 } |
141 | 145 |
142 ShelfButtonPressedMetricTracker* | 146 ShelfButtonPressedMetricTracker* |
143 ShelfViewTestAPI::shelf_button_pressed_metric_tracker() { | 147 ShelfViewTestAPI::shelf_button_pressed_metric_tracker() { |
144 return &(shelf_view_->shelf_button_pressed_metric_tracker_); | 148 return &(shelf_view_->shelf_button_pressed_metric_tracker_); |
145 } | 149 } |
146 | 150 |
147 } // namespace test | 151 } // namespace test |
148 } // namespace ash | 152 } // namespace ash |
OLD | NEW |