| 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/common/test/test_shelf_item_delegate.h" | 5 #include "ash/common/test/test_shelf_item_delegate.h" |
| 6 | 6 |
| 7 #include "ash/common/wm_window.h" | 7 #include "ash/common/wm_window.h" |
| 8 | 8 |
| 9 namespace ash { | 9 namespace ash { |
| 10 namespace test { | 10 namespace test { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 } | 27 } |
| 28 | 28 |
| 29 base::string16 TestShelfItemDelegate::GetTitle() { | 29 base::string16 TestShelfItemDelegate::GetTitle() { |
| 30 return window_ ? window_->GetTitle() : base::string16(); | 30 return window_ ? window_->GetTitle() : base::string16(); |
| 31 } | 31 } |
| 32 | 32 |
| 33 ShelfMenuModel* TestShelfItemDelegate::CreateApplicationMenu(int event_flags) { | 33 ShelfMenuModel* TestShelfItemDelegate::CreateApplicationMenu(int event_flags) { |
| 34 return nullptr; | 34 return nullptr; |
| 35 } | 35 } |
| 36 | 36 |
| 37 bool TestShelfItemDelegate::CanPin() const { | |
| 38 return true; | |
| 39 } | |
| 40 | |
| 41 void TestShelfItemDelegate::Close() {} | 37 void TestShelfItemDelegate::Close() {} |
| 42 | 38 |
| 43 } // namespace test | 39 } // namespace test |
| 44 } // namespace ash | 40 } // namespace ash |
| OLD | NEW |