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

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

Issue 176883022: Shelf Cleanup (- binary files) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/system/web_notification/web_notification_tray.cc ('k') | ash/wm/app_list_controller.cc » ('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_model.h" 10 #include "ash/shelf/shelf_model.h"
10 #include "ash/shelf/shelf_view.h" 11 #include "ash/shelf/shelf_view.h"
11 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
12 #include "ui/views/animation/bounds_animator.h" 13 #include "ui/views/animation/bounds_animator.h"
13 #include "ui/views/view_model.h" 14 #include "ui/views/view_model.h"
14 15
15 namespace { 16 namespace {
16 17
17 // A class used to wait for animations. 18 // A class used to wait for animations.
18 class TestAPIAnimationObserver : public views::BoundsAnimatorObserver { 19 class TestAPIAnimationObserver : public views::BoundsAnimatorObserver {
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 102
102 internal::OverflowBubble* ShelfViewTestAPI::overflow_bubble() { 103 internal::OverflowBubble* ShelfViewTestAPI::overflow_bubble() {
103 return shelf_view_->overflow_bubble_.get(); 104 return shelf_view_->overflow_bubble_.get();
104 } 105 }
105 106
106 gfx::Size ShelfViewTestAPI::GetPreferredSize() { 107 gfx::Size ShelfViewTestAPI::GetPreferredSize() {
107 return shelf_view_->GetPreferredSize(); 108 return shelf_view_->GetPreferredSize();
108 } 109 }
109 110
110 int ShelfViewTestAPI::GetButtonSize() { 111 int ShelfViewTestAPI::GetButtonSize() {
111 return shelf_view_->GetButtonSize(); 112 return kShelfButtonSize;
112 } 113 }
113 114
114 int ShelfViewTestAPI::GetButtonSpacing() { 115 int ShelfViewTestAPI::GetButtonSpacing() {
115 return shelf_view_->GetButtonSpacing(); 116 return kShelfButtonSpacing;
116 } 117 }
117 118
118 bool ShelfViewTestAPI::SameDragType(ShelfItemType typea, 119 bool ShelfViewTestAPI::SameDragType(ShelfItemType typea,
119 ShelfItemType typeb) const { 120 ShelfItemType typeb) const {
120 return shelf_view_->SameDragType(typea, typeb); 121 return shelf_view_->SameDragType(typea, typeb);
121 } 122 }
122 123
123 void ShelfViewTestAPI::SetShelfDelegate(ShelfDelegate* delegate) { 124 void ShelfViewTestAPI::SetShelfDelegate(ShelfDelegate* delegate) {
124 shelf_view_->delegate_ = delegate; 125 shelf_view_->delegate_ = delegate;
125 } 126 }
126 127
127 gfx::Rect ShelfViewTestAPI::GetBoundsForDragInsertInScreen() { 128 gfx::Rect ShelfViewTestAPI::GetBoundsForDragInsertInScreen() {
128 return shelf_view_->GetBoundsForDragInsertInScreen(); 129 return shelf_view_->GetBoundsForDragInsertInScreen();
129 } 130 }
130 131
131 bool ShelfViewTestAPI::IsRippedOffFromShelf() { 132 bool ShelfViewTestAPI::IsRippedOffFromShelf() {
132 return shelf_view_->dragged_off_shelf_; 133 return shelf_view_->dragged_off_shelf_;
133 } 134 }
134 135
135 bool ShelfViewTestAPI::DraggedItemFromOverflowToShelf() { 136 bool ShelfViewTestAPI::DraggedItemFromOverflowToShelf() {
136 return shelf_view_->dragged_off_from_overflow_to_shelf_; 137 return shelf_view_->dragged_off_from_overflow_to_shelf_;
137 } 138 }
138 139
139 } // namespace test 140 } // namespace test
140 } // namespace ash 141 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/web_notification/web_notification_tray.cc ('k') | ash/wm/app_list_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698