| Index: ash/login/views/lock_contents_view.cc
|
| diff --git a/ash/login/views/lock_contents_view.cc b/ash/login/views/lock_contents_view.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5c557b9783ceb84b947c9aa3e3b75496268312cc
|
| --- /dev/null
|
| +++ b/ash/login/views/lock_contents_view.cc
|
| @@ -0,0 +1,40 @@
|
| +// 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.
|
| +
|
| +#include "ash/login/views/lock_contents_view.h"
|
| +
|
| +#include "base/strings/utf_string_conversions.h"
|
| +#include "ui/views/background.h"
|
| +#include "ui/views/border.h"
|
| +#include "ui/views/layout/box_layout.h"
|
| +
|
| +namespace ash {
|
| +
|
| +LockContentsView::LockContentsView() {
|
| + auto* layout = new views::BoxLayout(views::BoxLayout::kVertical, 0, 0, 0);
|
| + SetLayoutManager(layout);
|
| +
|
| + views::Label* label = new views::Label();
|
| + label->SetBorder(views::CreateEmptyBorder(2, 3, 4, 5));
|
| + label->set_background(views::Background::CreateThemedSolidBackground(
|
| + label, ui::NativeTheme::kColorId_BubbleBackground));
|
| + label->SetText(base::ASCIIToUTF16("User"));
|
| + AddChildView(label);
|
| +
|
| + unlock_button_ =
|
| + views::MdTextButton::Create(this, base::ASCIIToUTF16("Unlock"));
|
| + AddChildView(unlock_button_);
|
| +}
|
| +
|
| +LockContentsView::~LockContentsView() {}
|
| +
|
| +void LockContentsView::ButtonPressed(views::Button* sender,
|
| + const ui::Event& event) {
|
| + DCHECK(unlock_button_ == sender);
|
| +
|
| + // TODO: Run mojo call that talks to backend which unlocks the device.
|
| + NOTIMPLEMENTED();
|
| +}
|
| +
|
| +} // namespace ash
|
|
|