| 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 #ifndef ASH_SYSTEM_USER_USER_VIEW_H_ | 5 #ifndef ASH_SYSTEM_USER_USER_VIEW_H_ |
| 6 #define ASH_SYSTEM_USER_USER_VIEW_H_ | 6 #define ASH_SYSTEM_USER_USER_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/common/session/session_types.h" | 10 #include "ash/common/session/session_types.h" |
| 11 #include "ash/common/system/tray/tray_constants.h" | 11 #include "ash/common/system/tray/tray_constants.h" |
| 12 #include "ash/system/user/login_status.h" | |
| 13 #include "ash/system/user/tray_user.h" | 12 #include "ash/system/user/tray_user.h" |
| 14 #include "base/macros.h" | 13 #include "base/macros.h" |
| 15 #include "ui/views/controls/button/button.h" | 14 #include "ui/views/controls/button/button.h" |
| 16 #include "ui/views/focus/focus_manager.h" | 15 #include "ui/views/focus/focus_manager.h" |
| 17 #include "ui/views/layout/box_layout.h" | 16 #include "ui/views/layout/box_layout.h" |
| 18 #include "ui/views/mouse_watcher.h" | 17 #include "ui/views/mouse_watcher.h" |
| 19 #include "ui/views/view.h" | 18 #include "ui/views/view.h" |
| 20 | 19 |
| 21 namespace gfx { | 20 namespace gfx { |
| 22 class Rect; | 21 class Rect; |
| 23 class Size; | 22 class Size; |
| 24 } | 23 } |
| 25 | 24 |
| 26 namespace views { | 25 namespace views { |
| 27 class FocusManager; | 26 class FocusManager; |
| 28 } | 27 } |
| 29 | 28 |
| 30 namespace ash { | 29 namespace ash { |
| 31 | 30 |
| 31 enum class LoginStatus; |
| 32 class PopupMessage; | 32 class PopupMessage; |
| 33 class SystemTrayItem; | 33 class SystemTrayItem; |
| 34 | 34 |
| 35 namespace tray { | 35 namespace tray { |
| 36 | 36 |
| 37 // The view of a user item in system tray bubble. | 37 // The view of a user item in system tray bubble. |
| 38 class UserView : public views::View, | 38 class UserView : public views::View, |
| 39 public views::ButtonListener, | 39 public views::ButtonListener, |
| 40 public views::MouseWatcherListener, | 40 public views::MouseWatcherListener, |
| 41 public views::FocusChangeListener { | 41 public views::FocusChangeListener { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 // The focus manager which we use to detect focus changes. | 98 // The focus manager which we use to detect focus changes. |
| 99 views::FocusManager* focus_manager_; | 99 views::FocusManager* focus_manager_; |
| 100 | 100 |
| 101 DISALLOW_COPY_AND_ASSIGN(UserView); | 101 DISALLOW_COPY_AND_ASSIGN(UserView); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace tray | 104 } // namespace tray |
| 105 } // namespace ash | 105 } // namespace ash |
| 106 | 106 |
| 107 #endif // ASH_SYSTEM_USER_USER_VIEW_H_ | 107 #endif // ASH_SYSTEM_USER_USER_VIEW_H_ |
| OLD | NEW |