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

Side by Side Diff: ash/test/shelf_view_test_api.cc

Issue 1816753002: Enable mash shelf tooltips. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address destructor comment. Created 4 years, 9 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
« no previous file with comments | « ash/test/shelf_view_test_api.h ('k') | ui/app_list/views/app_list_drag_and_drop_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/test/shelf_view_test_api.h ('k') | ui/app_list/views/app_list_drag_and_drop_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698