| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/media_security/multi_profile_media_tray_item.h" | 5 #include "ash/system/chromeos/media_security/multi_profile_media_tray_item.h" |
| 6 | 6 |
| 7 #include "ash/ash_view_ids.h" | 7 #include "ash/ash_view_ids.h" |
| 8 #include "ash/common/session/session_state_delegate.h" | 8 #include "ash/common/session/session_state_delegate.h" |
| 9 #include "ash/common/system/chromeos/media_security/media_capture_observer.h" | 9 #include "ash/common/system/chromeos/media_security/media_capture_observer.h" |
| 10 #include "ash/common/system/tray/system_tray_notifier.h" | 10 #include "ash/common/system/tray/system_tray_notifier.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 SetVisible(false); | 56 SetVisible(false); |
| 57 } | 57 } |
| 58 | 58 |
| 59 private: | 59 private: |
| 60 DISALLOW_COPY_AND_ASSIGN(MultiProfileMediaTrayView); | 60 DISALLOW_COPY_AND_ASSIGN(MultiProfileMediaTrayView); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace tray | 63 } // namespace tray |
| 64 | 64 |
| 65 MultiProfileMediaTrayItem::MultiProfileMediaTrayItem(SystemTray* system_tray) | 65 MultiProfileMediaTrayItem::MultiProfileMediaTrayItem(SystemTray* system_tray) |
| 66 : SystemTrayItem(system_tray), tray_view_(NULL) { | 66 : SystemTrayItem(system_tray), tray_view_(NULL) {} |
| 67 } | |
| 68 | 67 |
| 69 MultiProfileMediaTrayItem::~MultiProfileMediaTrayItem() { | 68 MultiProfileMediaTrayItem::~MultiProfileMediaTrayItem() {} |
| 70 } | |
| 71 | 69 |
| 72 views::View* MultiProfileMediaTrayItem::CreateTrayView(LoginStatus status) { | 70 views::View* MultiProfileMediaTrayItem::CreateTrayView(LoginStatus status) { |
| 73 tray_view_ = new tray::MultiProfileMediaTrayView(this); | 71 tray_view_ = new tray::MultiProfileMediaTrayView(this); |
| 74 return tray_view_; | 72 return tray_view_; |
| 75 } | 73 } |
| 76 | 74 |
| 77 void MultiProfileMediaTrayItem::DestroyTrayView() { | 75 void MultiProfileMediaTrayItem::DestroyTrayView() { |
| 78 tray_view_ = NULL; | 76 tray_view_ = NULL; |
| 79 } | 77 } |
| 80 | 78 |
| 81 } // namespace ash | 79 } // namespace ash |
| OLD | NEW |