Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(475)

Side by Side Diff: ash/system/chromeos/tray_tracing.cc

Issue 2041233005: Moves ash::user::LoginStatus to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/chromeos/tray_tracing.h ('k') | ash/system/date/date_default_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ash/system/chromeos/tray_tracing.h ('k') | ash/system/date/date_default_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698