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

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

Issue 2873433005: cros: Move ash/login/views to ash/login/ui (Closed)
Patch Set: 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/login/views/lock_contents_view.h ('k') | ash/login/views/lock_screen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 5c557b9783ceb84b947c9aa3e3b75496268312cc..0000000000000000000000000000000000000000
--- a/ash/login/views/lock_contents_view.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// 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
« no previous file with comments | « ash/login/views/lock_contents_view.h ('k') | ash/login/views/lock_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698