Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Unified Diff: ash/login/views/lock_contents_view.h

Issue 2859363003: cros: Initial structure for views-based lock. (Closed)
Patch Set: Address comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/BUILD.gn ('k') | ash/login/views/lock_contents_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ash/BUILD.gn ('k') | ash/login/views/lock_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698