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

Side by Side Diff: ash/system/tray/tray_empty.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/tray/tray_empty.h ('k') | ash/system/tray/tray_image_item.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/tray/tray_empty.h" 5 #include "ash/system/tray/tray_empty.h"
6 6
7 #include "ui/views/layout/box_layout.h" 7 #include "ui/views/layout/box_layout.h"
8 #include "ui/views/background.h" 8 #include "ui/views/background.h"
9 #include "ui/views/border.h" 9 #include "ui/views/border.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 14 matching lines...) Expand all
25 } 25 }
26 26
27 namespace ash { 27 namespace ash {
28 28
29 TrayEmpty::TrayEmpty(SystemTray* system_tray) 29 TrayEmpty::TrayEmpty(SystemTray* system_tray)
30 : SystemTrayItem(system_tray) { 30 : SystemTrayItem(system_tray) {
31 } 31 }
32 32
33 TrayEmpty::~TrayEmpty() {} 33 TrayEmpty::~TrayEmpty() {}
34 34
35 views::View* TrayEmpty::CreateTrayView(user::LoginStatus status) { 35 views::View* TrayEmpty::CreateTrayView(LoginStatus status) {
36 return NULL; 36 return NULL;
37 } 37 }
38 38
39 views::View* TrayEmpty::CreateDefaultView(user::LoginStatus status) { 39 views::View* TrayEmpty::CreateDefaultView(LoginStatus status) {
40 if (status == user::LOGGED_IN_NONE) 40 if (status == LoginStatus::NOT_LOGGED_IN)
41 return NULL; 41 return NULL;
42 42
43 views::View* view = new views::View; 43 views::View* view = new views::View;
44 view->set_background(new EmptyBackground()); 44 view->set_background(new EmptyBackground());
45 view->SetBorder(views::Border::CreateEmptyBorder(10, 0, 0, 0)); 45 view->SetBorder(views::Border::CreateEmptyBorder(10, 0, 0, 0));
46 view->SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical, 46 view->SetLayoutManager(new views::BoxLayout(views::BoxLayout::kVertical,
47 0, 0, 0)); 47 0, 0, 0));
48 view->SetPaintToLayer(true); 48 view->SetPaintToLayer(true);
49 view->layer()->SetFillsBoundsOpaquely(false); 49 view->layer()->SetFillsBoundsOpaquely(false);
50 return view; 50 return view;
51 } 51 }
52 52
53 views::View* TrayEmpty::CreateDetailedView(user::LoginStatus status) { 53 views::View* TrayEmpty::CreateDetailedView(LoginStatus status) {
54 return NULL; 54 return NULL;
55 } 55 }
56 56
57 void TrayEmpty::DestroyTrayView() {} 57 void TrayEmpty::DestroyTrayView() {}
58 58
59 void TrayEmpty::DestroyDefaultView() {} 59 void TrayEmpty::DestroyDefaultView() {}
60 60
61 void TrayEmpty::DestroyDetailedView() {} 61 void TrayEmpty::DestroyDetailedView() {}
62 62
63 void TrayEmpty::UpdateAfterLoginStatusChange(user::LoginStatus status) {} 63 void TrayEmpty::UpdateAfterLoginStatusChange(LoginStatus status) {}
64 64
65 } // namespace ash 65 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/tray_empty.h ('k') | ash/system/tray/tray_image_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698