Chromium Code Reviews| Index: ash/login/views/contents_view.h |
| diff --git a/ash/login/views/contents_view.h b/ash/login/views/contents_view.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..10ef8dacb8db5289ae7896aae2129000187ee4d5 |
| --- /dev/null |
| +++ b/ash/login/views/contents_view.h |
| @@ -0,0 +1,31 @@ |
| +// 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 { |
| + |
| +// ContentsView hosts the root view for the lock screen. |
|
James Cook
2017/05/08 22:04:20
Is there a single instance, or one per display?
jdufault
2017/05/08 23:02:34
Done.
|
| +class ContentsView : public views::View, public views::ButtonListener { |
|
James Cook
2017/05/08 22:04:20
I would prefer unique class names for as long as w
jdufault
2017/05/08 23:02:34
Done.
|
| + public: |
| + ContentsView(); |
| + ~ContentsView() override; |
| + |
| + // views::ButtonListener |
|
James Cook
2017/05/08 22:04:20
super nit: end with :
jdufault
2017/05/08 23:02:34
Done.
|
| + void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| + |
| + private: |
| + views::Button* unlock_button_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(ContentsView); |
| +}; |
| + |
| +} // ash |
|
James Cook
2017/05/08 22:04:20
"namespace ash"
jdufault
2017/05/08 23:02:34
Done.
|
| + |
| +#endif // ASH_LOGIN_VIEWS_CONTENTS_VIEW_H_ |