Index: ash/login/views/lock_contents_view.h |
diff --git a/ash/login/views/lock_contents_view.h b/ash/login/views/lock_contents_view.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0738812c0ad7fa89cce08df2bd97602b7495ed29 |
--- /dev/null |
+++ b/ash/login/views/lock_contents_view.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ASH_LOGIN_VIEWS_CONTENTS_VIEW_H_ |
+#define ASH_LOGIN_VIEWS_CONTENTS_VIEW_H_ |
+ |
+#include "base/macros.h" |
+#include "ui/views/controls/button/md_text_button.h" |
+#include "ui/views/view.h" |
+ |
+namespace ash { |
+ |
+// LockContentsView hosts the root view for the lock screen. All other lock |
+// screen views are embedded within this one. LockContentsView is per-display, |
+// but the lock screen should only ever be shown on a single display, so there |
+// is effectively only a single instance. |
James Cook
2017/05/08 23:24:09
nice comment
jdufault
2017/05/08 23:48:28
:)
|
+class LockContentsView : public views::View, public views::ButtonListener { |
+ public: |
+ LockContentsView(); |
+ ~LockContentsView() override; |
+ |
+ // views::ButtonListener: |
+ void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
+ |
+ private: |
+ views::Button* unlock_button_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(LockContentsView); |
+}; |
+ |
+} // namespace ash |
+ |
+#endif // ASH_LOGIN_VIEWS_CONTENTS_VIEW_H_ |