OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef ASH_COMMON_SYSTEM_TRAY_TEST_TEST_SYSTEM_TRAY_ITEM_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_TEST_TEST_SYSTEM_TRAY_ITEM_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_TEST_TEST_SYSTEM_TRAY_ITEM_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_TEST_TEST_SYSTEM_TRAY_ITEM_H_ |
7 | 7 |
8 #include "ash/common/system/tray/system_tray_item.h" | 8 #include "ash/system/tray/system_tray_item.h" |
9 | 9 |
10 namespace ash { | 10 namespace ash { |
11 namespace test { | 11 namespace test { |
12 | 12 |
13 // Trivial item implementation that tracks its views for testing. By default | 13 // Trivial item implementation that tracks its views for testing. By default |
14 // views are created and returned by the Create*View() methods and they are | 14 // views are created and returned by the Create*View() methods and they are |
15 // configured to be visible. Use set_has_views() and set_views_are_visible() to | 15 // configured to be visible. Use set_has_views() and set_views_are_visible() to |
16 // change this behavior. | 16 // change this behavior. |
17 class TestSystemTrayItem : public SystemTrayItem { | 17 class TestSystemTrayItem : public SystemTrayItem { |
18 public: | 18 public: |
(...skipping 24 matching lines...) Expand all Loading... |
43 views::View* default_view_; | 43 views::View* default_view_; |
44 views::View* detailed_view_; | 44 views::View* detailed_view_; |
45 | 45 |
46 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayItem); | 46 DISALLOW_COPY_AND_ASSIGN(TestSystemTrayItem); |
47 }; | 47 }; |
48 | 48 |
49 } // namespace test | 49 } // namespace test |
50 } // namespace ash | 50 } // namespace ash |
51 | 51 |
52 #endif // ASH_COMMON_SYSTEM_TRAY_TEST_TEST_SYSTEM_TRAY_ITEM_H_ | 52 #endif // ASH_COMMON_SYSTEM_TRAY_TEST_TEST_SYSTEM_TRAY_ITEM_H_ |
OLD | NEW |