| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  104  |  104  | 
|  105 ShelfTooltipManager* ShelfViewTestAPI::tooltip_manager() { |  105 ShelfTooltipManager* ShelfViewTestAPI::tooltip_manager() { | 
|  106   return &shelf_view_->tooltip_; |  106   return &shelf_view_->tooltip_; | 
|  107 } |  107 } | 
|  108  |  108  | 
|  109 gfx::Size ShelfViewTestAPI::GetPreferredSize() { |  109 gfx::Size ShelfViewTestAPI::GetPreferredSize() { | 
|  110   return shelf_view_->GetPreferredSize(); |  110   return shelf_view_->GetPreferredSize(); | 
|  111 } |  111 } | 
|  112  |  112  | 
|  113 int ShelfViewTestAPI::GetButtonSize() { |  113 int ShelfViewTestAPI::GetButtonSize() { | 
|  114   return kShelfButtonSize; |  114   return GetShelfLayoutConstant(SHELF_BUTTON_SIZE); | 
|  115 } |  115 } | 
|  116  |  116  | 
|  117 int ShelfViewTestAPI::GetButtonSpacing() { |  117 int ShelfViewTestAPI::GetButtonSpacing() { | 
|  118   return kShelfButtonSpacing; |  118   return GetShelfLayoutConstant(SHELF_BUTTON_SPACING); | 
|  119 } |  119 } | 
|  120  |  120  | 
|  121 void ShelfViewTestAPI::ButtonPressed(views::Button* sender, |  121 void ShelfViewTestAPI::ButtonPressed(views::Button* sender, | 
|  122                                      const ui::Event& event) { |  122                                      const ui::Event& event) { | 
|  123   return shelf_view_->ButtonPressed(sender, event); |  123   return shelf_view_->ButtonPressed(sender, event); | 
|  124 } |  124 } | 
|  125  |  125  | 
|  126 bool ShelfViewTestAPI::SameDragType(ShelfItemType typea, |  126 bool ShelfViewTestAPI::SameDragType(ShelfItemType typea, | 
|  127                                     ShelfItemType typeb) const { |  127                                     ShelfItemType typeb) const { | 
|  128   return shelf_view_->SameDragType(typea, typeb); |  128   return shelf_view_->SameDragType(typea, typeb); | 
| (...skipping 15 matching lines...) Expand all  Loading... | 
|  144     return shelf_view_->dragged_off_from_overflow_to_shelf_; |  144     return shelf_view_->dragged_off_from_overflow_to_shelf_; | 
|  145 } |  145 } | 
|  146  |  146  | 
|  147 ShelfButtonPressedMetricTracker* |  147 ShelfButtonPressedMetricTracker* | 
|  148 ShelfViewTestAPI::shelf_button_pressed_metric_tracker() { |  148 ShelfViewTestAPI::shelf_button_pressed_metric_tracker() { | 
|  149   return &(shelf_view_->shelf_button_pressed_metric_tracker_); |  149   return &(shelf_view_->shelf_button_pressed_metric_tracker_); | 
|  150 } |  150 } | 
|  151  |  151  | 
|  152 }  // namespace test |  152 }  // namespace test | 
|  153 }  // namespace ash |  153 }  // namespace ash | 
| OLD | NEW |