#include "ash/shelf/overflow_button.h"
#include "ash/shelf/shelf_button.h"
+#include "ash/shelf/shelf_constants.h"
#include "ash/shelf/shelf_model.h"
#include "ash/shelf/shelf_view.h"
#include "base/message_loop/message_loop.h"
namespace ash {
namespace test {
-ShelfViewTestAPI::ShelfViewTestAPI(internal::ShelfView* shelf_view)
- : shelf_view_(shelf_view) {
-}
+ShelfViewTestAPI::ShelfViewTestAPI(ShelfView* shelf_view)
+ : shelf_view_(shelf_view) {}
ShelfViewTestAPI::~ShelfViewTestAPI() {
}
return shelf_view_->view_model_->view_size();
}
-internal::ShelfButton* ShelfViewTestAPI::GetButton(int index) {
+ShelfButton* ShelfViewTestAPI::GetButton(int index) {
// App list button is not a ShelfButton.
if (shelf_view_->model_->items()[index].type == ash::TYPE_APP_LIST)
return NULL;
- return static_cast<internal::ShelfButton*>(
- shelf_view_->view_model_->view_at(index));
+ return static_cast<ShelfButton*>(shelf_view_->view_model_->view_at(index));
}
int ShelfViewTestAPI::GetFirstVisibleIndex() {
shelf_view_->bounds_animator_->RemoveObserver(observer.get());
}
-internal::OverflowBubble* ShelfViewTestAPI::overflow_bubble() {
+OverflowBubble* ShelfViewTestAPI::overflow_bubble() {
return shelf_view_->overflow_bubble_.get();
}
}
int ShelfViewTestAPI::GetButtonSize() {
- return shelf_view_->GetButtonSize();
+ return kShelfButtonSize;
}
int ShelfViewTestAPI::GetButtonSpacing() {
- return shelf_view_->GetButtonSpacing();
+ return kShelfButtonSpacing;
}
bool ShelfViewTestAPI::SameDragType(ShelfItemType typea,