| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_test_api.h" | 5 #include "ash/test/shelf_test_api.h" |
| 6 | 6 |
| 7 #include "ash/shelf/shelf.h" | 7 #include "ash/shelf/shelf.h" |
| 8 | 8 |
| 9 namespace ash { | 9 namespace ash { |
| 10 namespace test { | 10 namespace test { |
| 11 | 11 |
| 12 ShelfTestAPI::ShelfTestAPI(Shelf* shelf) | 12 ShelfTestAPI::ShelfTestAPI(Shelf* shelf) : shelf_(shelf) {} |
| 13 : shelf_(shelf) { | |
| 14 } | |
| 15 | 13 |
| 16 ShelfTestAPI::~ShelfTestAPI() { | 14 ShelfTestAPI::~ShelfTestAPI() {} |
| 17 } | |
| 18 | 15 |
| 19 ShelfView* ShelfTestAPI::shelf_view() { return shelf_->shelf_view_; } | 16 ShelfView* ShelfTestAPI::shelf_view() { return shelf_->shelf_view_; } |
| 20 | 17 |
| 21 void ShelfTestAPI::SetShelfDelegate(ShelfDelegate* delegate) { | 18 void ShelfTestAPI::SetShelfDelegate(ShelfDelegate* delegate) { |
| 22 shelf_->delegate_ = delegate; | 19 shelf_->delegate_ = delegate; |
| 23 } | 20 } |
| 24 | 21 |
| 25 } // namespace test | 22 } // namespace test |
| 26 } // namespace ash | 23 } // namespace ash |
| OLD | NEW |