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_lookup.h" | 7 #include "ash/common/wm_lookup.h" |
8 #include "ash/common/wm_window.h" | 8 #include "ash/common/wm_window.h" |
9 #include "ui/events/event.h" | 9 #include "ui/events/event.h" |
10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 62 } |
63 | 63 |
64 bool TestShelfItemDelegate::CanPin() const { | 64 bool TestShelfItemDelegate::CanPin() const { |
65 return true; | 65 return true; |
66 } | 66 } |
67 | 67 |
68 bool TestShelfItemDelegate::ShouldShowTooltip() { | 68 bool TestShelfItemDelegate::ShouldShowTooltip() { |
69 return true; | 69 return true; |
70 } | 70 } |
71 | 71 |
| 72 bool TestShelfItemDelegate::IsOpen() const { |
| 73 return window_ != nullptr; |
| 74 } |
| 75 |
72 void TestShelfItemDelegate::Close() {} | 76 void TestShelfItemDelegate::Close() {} |
73 | 77 |
74 } // namespace test | 78 } // namespace test |
75 } // namespace ash | 79 } // namespace ash |
OLD | NEW |