| 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_COMMON_SYSTEM_USER_USER_VIEW_H_ | 5 #ifndef ASH_COMMON_SYSTEM_USER_USER_VIEW_H_ |
| 6 #define ASH_COMMON_SYSTEM_USER_USER_VIEW_H_ | 6 #define ASH_COMMON_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" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 TrayUser::TestState GetStateForTest() const; | 49 TrayUser::TestState GetStateForTest() const; |
| 50 gfx::Rect GetBoundsInScreenOfUserButtonForTest(); | 50 gfx::Rect GetBoundsInScreenOfUserButtonForTest(); |
| 51 | 51 |
| 52 views::View* user_card_view_for_test() const { return user_card_view_; } | 52 views::View* user_card_view_for_test() const { return user_card_view_; } |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 // Overridden from views::View. | 55 // Overridden from views::View. |
| 56 gfx::Size GetPreferredSize() const override; | 56 gfx::Size GetPreferredSize() const override; |
| 57 int GetHeightForWidth(int width) const override; | 57 int GetHeightForWidth(int width) const override; |
| 58 void Layout() override; | 58 void Layout() override; |
| 59 void OnPaintBorder(gfx::Canvas* canvas) override; | |
| 60 | 59 |
| 61 // Overridden from views::ButtonListener. | 60 // Overridden from views::ButtonListener. |
| 62 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 61 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 63 | 62 |
| 64 // Overridden from views::FocusChangeListener: | 63 // Overridden from views::FocusChangeListener: |
| 65 void OnWillChangeFocus(View* focused_before, View* focused_now) override; | 64 void OnWillChangeFocus(View* focused_before, View* focused_now) override; |
| 66 void OnDidChangeFocus(View* focused_before, View* focused_now) override; | 65 void OnDidChangeFocus(View* focused_before, View* focused_now) override; |
| 67 | 66 |
| 68 void AddLogoutButton(LoginStatus login); | 67 void AddLogoutButton(LoginStatus login); |
| 69 void AddUserCard(LoginStatus login); | 68 void AddUserCard(LoginStatus login); |
| (...skipping 29 matching lines...) Expand all Loading... |
| 99 // The focus manager which we use to detect focus changes. | 98 // The focus manager which we use to detect focus changes. |
| 100 views::FocusManager* focus_manager_; | 99 views::FocusManager* focus_manager_; |
| 101 | 100 |
| 102 DISALLOW_COPY_AND_ASSIGN(UserView); | 101 DISALLOW_COPY_AND_ASSIGN(UserView); |
| 103 }; | 102 }; |
| 104 | 103 |
| 105 } // namespace tray | 104 } // namespace tray |
| 106 } // namespace ash | 105 } // namespace ash |
| 107 | 106 |
| 108 #endif // ASH_COMMON_SYSTEM_USER_USER_VIEW_H_ | 107 #endif // ASH_COMMON_SYSTEM_USER_USER_VIEW_H_ |
| OLD | NEW |