| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_LOGIN_VIEWS_CONTENTS_VIEW_H_ | 5 #ifndef ASH_LOGIN_VIEWS_CONTENTS_VIEW_H_ |
| 6 #define ASH_LOGIN_VIEWS_CONTENTS_VIEW_H_ | 6 #define ASH_LOGIN_VIEWS_CONTENTS_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" |
| 8 #include "base/macros.h" | 9 #include "base/macros.h" |
| 9 #include "ui/views/controls/button/md_text_button.h" | 10 #include "ui/views/controls/button/md_text_button.h" |
| 10 #include "ui/views/view.h" | 11 #include "ui/views/view.h" |
| 11 | 12 |
| 12 namespace ash { | 13 namespace ash { |
| 13 | 14 |
| 14 // LockContentsView hosts the root view for the lock screen. All other lock | 15 // LockContentsView hosts the root view for the lock screen. All other lock |
| 15 // screen views are embedded within this one. LockContentsView is per-display, | 16 // screen views are embedded within this one. LockContentsView is per-display, |
| 16 // but the lock screen should only ever be shown on a single display, so there | 17 // but the lock screen should only ever be shown on a single display, so there |
| 17 // is effectively only a single instance. | 18 // is effectively only a single instance. |
| 18 class LockContentsView : public views::View, public views::ButtonListener { | 19 class ASH_EXPORT LockContentsView : public views::View, |
| 20 public views::ButtonListener { |
| 19 public: | 21 public: |
| 20 LockContentsView(); | 22 LockContentsView(); |
| 21 ~LockContentsView() override; | 23 ~LockContentsView() override; |
| 22 | 24 |
| 23 // views::ButtonListener: | 25 // views::ButtonListener: |
| 24 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 26 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 25 | 27 |
| 26 private: | 28 private: |
| 27 views::Button* unlock_button_; | 29 views::Button* unlock_button_; |
| 28 | 30 |
| 29 DISALLOW_COPY_AND_ASSIGN(LockContentsView); | 31 DISALLOW_COPY_AND_ASSIGN(LockContentsView); |
| 30 }; | 32 }; |
| 31 | 33 |
| 32 } // namespace ash | 34 } // namespace ash |
| 33 | 35 |
| 34 #endif // ASH_LOGIN_VIEWS_CONTENTS_VIEW_H_ | 36 #endif // ASH_LOGIN_VIEWS_CONTENTS_VIEW_H_ |
| OLD | NEW |