| 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 "ash/session/session_state_delegate.h" | 8 #include "ash/session/session_state_delegate.h" |
| 9 #include "ash/system/tray/tray_constants.h" | 9 #include "ash/system/tray/tray_constants.h" |
| 10 #include "ash/system/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
| 11 #include "ash/system/user/tray_user.h" | 11 #include "ash/system/user/tray_user.h" |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
| 14 #include "ui/views/focus/focus_manager.h" | 14 #include "ui/views/focus/focus_manager.h" |
| 15 #include "ui/views/layout/box_layout.h" | 15 #include "ui/views/layout/box_layout.h" |
| 16 #include "ui/views/mouse_watcher.h" | 16 #include "ui/views/mouse_watcher.h" |
| 17 #include "ui/views/view.h" | 17 #include "ui/views/view.h" |
| 18 | 18 |
| 19 namespace gfx { | 19 namespace gfx { |
| 20 class Rect; | 20 class Rect; |
| 21 class Size; | 21 class Size; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace views { |
| 25 class FocusManager; |
| 26 } |
| 27 |
| 24 namespace ash { | 28 namespace ash { |
| 25 | 29 |
| 26 class PopupMessage; | 30 class PopupMessage; |
| 27 class SystemTrayItem; | 31 class SystemTrayItem; |
| 28 | 32 |
| 29 namespace tray { | 33 namespace tray { |
| 30 | 34 |
| 31 // The view of a user item in system tray bubble. | 35 // The view of a user item in system tray bubble. |
| 32 class UserView : public views::View, | 36 class UserView : public views::View, |
| 33 public views::ButtonListener, | 37 public views::ButtonListener, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 | 93 |
| 90 // True when the add user panel is visible but not activatable. | 94 // True when the add user panel is visible but not activatable. |
| 91 bool add_user_disabled_; | 95 bool add_user_disabled_; |
| 92 | 96 |
| 93 // True if this view will be used inside detailed view. | 97 // True if this view will be used inside detailed view. |
| 94 bool for_detailed_view_; | 98 bool for_detailed_view_; |
| 95 | 99 |
| 96 // The mouse watcher which takes care of out of window hover events. | 100 // The mouse watcher which takes care of out of window hover events. |
| 97 scoped_ptr<views::MouseWatcher> mouse_watcher_; | 101 scoped_ptr<views::MouseWatcher> mouse_watcher_; |
| 98 | 102 |
| 103 // The focus manager which we use to detect focus changes. |
| 104 views::FocusManager* focus_manager_; |
| 105 |
| 99 DISALLOW_COPY_AND_ASSIGN(UserView); | 106 DISALLOW_COPY_AND_ASSIGN(UserView); |
| 100 }; | 107 }; |
| 101 | 108 |
| 102 } // namespace tray | 109 } // namespace tray |
| 103 } // namespace ash | 110 } // namespace ash |
| 104 | 111 |
| 105 #endif // ASH_SYSTEM_USER_USER_VIEW_H_ | 112 #endif // ASH_SYSTEM_USER_USER_VIEW_H_ |
| OLD | NEW |