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/system/chromeos/tray_tracing.h" | 5 #include "ash/system/chromeos/tray_tracing.h" |
6 | 6 |
7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
8 #include "ash/system/tray/actionable_view.h" | 8 #include "ash/system/tray/actionable_view.h" |
9 #include "ash/system/tray/fixed_sized_image_view.h" | 9 #include "ash/system/tray/fixed_sized_image_view.h" |
10 #include "ash/system/tray/system_tray.h" | 10 #include "ash/system/tray/system_tray.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 void TrayTracing::SetTrayIconVisible(bool visible) { | 78 void TrayTracing::SetTrayIconVisible(bool visible) { |
79 if (tray_view()) | 79 if (tray_view()) |
80 tray_view()->SetVisible(visible); | 80 tray_view()->SetVisible(visible); |
81 } | 81 } |
82 | 82 |
83 bool TrayTracing::GetInitialVisibility() { | 83 bool TrayTracing::GetInitialVisibility() { |
84 return false; | 84 return false; |
85 } | 85 } |
86 | 86 |
87 views::View* TrayTracing::CreateDefaultView(user::LoginStatus status) { | 87 views::View* TrayTracing::CreateDefaultView(LoginStatus status) { |
88 CHECK(default_ == NULL); | 88 CHECK(default_ == NULL); |
89 if (tray_view() && tray_view()->visible()) | 89 if (tray_view() && tray_view()->visible()) |
90 default_ = new tray::DefaultTracingView(); | 90 default_ = new tray::DefaultTracingView(); |
91 return default_; | 91 return default_; |
92 } | 92 } |
93 | 93 |
94 views::View* TrayTracing::CreateDetailedView(user::LoginStatus status) { | 94 views::View* TrayTracing::CreateDetailedView(LoginStatus status) { |
95 return NULL; | 95 return NULL; |
96 } | 96 } |
97 | 97 |
98 void TrayTracing::DestroyDefaultView() { | 98 void TrayTracing::DestroyDefaultView() { |
99 default_ = NULL; | 99 default_ = NULL; |
100 } | 100 } |
101 | 101 |
102 void TrayTracing::DestroyDetailedView() { | 102 void TrayTracing::DestroyDetailedView() { |
103 } | 103 } |
104 | 104 |
105 void TrayTracing::OnTracingModeChanged(bool value) { | 105 void TrayTracing::OnTracingModeChanged(bool value) { |
106 SetTrayIconVisible(value); | 106 SetTrayIconVisible(value); |
107 } | 107 } |
108 | 108 |
109 } // namespace ash | 109 } // namespace ash |
OLD | NEW |