| OLD | NEW |
| 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" |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 class EmptyBackground : public views::Background { | 14 class EmptyBackground : public views::Background { |
| 15 public: | 15 public: |
| 16 EmptyBackground() {} | 16 EmptyBackground() {} |
| 17 virtual ~EmptyBackground() {} | 17 virtual ~EmptyBackground() {} |
| 18 | 18 |
| 19 private: | 19 private: |
| 20 virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE { | 20 virtual void Paint(gfx::Canvas* canvas, views::View* view) const OVERRIDE { |
| 21 } | 21 } |
| 22 | 22 |
| 23 DISALLOW_COPY_AND_ASSIGN(EmptyBackground); | 23 DISALLOW_COPY_AND_ASSIGN(EmptyBackground); |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } | 26 } |
| 27 | 27 |
| 28 namespace ash { | 28 namespace ash { |
| 29 namespace internal { | |
| 30 | 29 |
| 31 TrayEmpty::TrayEmpty(SystemTray* system_tray) | 30 TrayEmpty::TrayEmpty(SystemTray* system_tray) |
| 32 : SystemTrayItem(system_tray) { | 31 : SystemTrayItem(system_tray) { |
| 33 } | 32 } |
| 34 | 33 |
| 35 TrayEmpty::~TrayEmpty() {} | 34 TrayEmpty::~TrayEmpty() {} |
| 36 | 35 |
| 37 views::View* TrayEmpty::CreateTrayView(user::LoginStatus status) { | 36 views::View* TrayEmpty::CreateTrayView(user::LoginStatus status) { |
| 38 return NULL; | 37 return NULL; |
| 39 } | 38 } |
| (...skipping 17 matching lines...) Expand all Loading... |
| 57 } | 56 } |
| 58 | 57 |
| 59 void TrayEmpty::DestroyTrayView() {} | 58 void TrayEmpty::DestroyTrayView() {} |
| 60 | 59 |
| 61 void TrayEmpty::DestroyDefaultView() {} | 60 void TrayEmpty::DestroyDefaultView() {} |
| 62 | 61 |
| 63 void TrayEmpty::DestroyDetailedView() {} | 62 void TrayEmpty::DestroyDetailedView() {} |
| 64 | 63 |
| 65 void TrayEmpty::UpdateAfterLoginStatusChange(user::LoginStatus status) {} | 64 void TrayEmpty::UpdateAfterLoginStatusChange(user::LoginStatus status) {} |
| 66 | 65 |
| 67 } // namespace internal | |
| 68 } // namespace ash | 66 } // namespace ash |
| OLD | NEW |