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

Unified Diff: ash/common/system/chromeos/session/logout_confirmation_dialog.h

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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
Index: ash/common/system/chromeos/session/logout_confirmation_dialog.h
diff --git a/ash/common/system/chromeos/session/logout_confirmation_dialog.h b/ash/common/system/chromeos/session/logout_confirmation_dialog.h
deleted file mode 100644
index fa3c4d42d352ca5cc673487f517afb0a9a807d66..0000000000000000000000000000000000000000
--- a/ash/common/system/chromeos/session/logout_confirmation_dialog.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 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_COMMON_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_
-#define ASH_COMMON_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_
-
-#include "base/macros.h"
-#include "base/time/time.h"
-#include "base/timer/timer.h"
-#include "ui/views/window/dialog_delegate.h"
-
-namespace views {
-class Label;
-}
-
-namespace ash {
-
-class LogoutConfirmationController;
-
-// A dialog that asks the user to confirm or deny logout. The dialog shows a
-// countdown and informs the user that a logout will happen automatically if no
-// choice is made before the countdown has expired.
-class LogoutConfirmationDialog : public views::DialogDelegateView {
- public:
- LogoutConfirmationDialog(LogoutConfirmationController* controller,
- base::TimeTicks logout_time);
- ~LogoutConfirmationDialog() override;
-
- void Update(base::TimeTicks logout_time);
-
- // Called when |controller_| is no longer valid.
- void ControllerGone();
-
- // views::DialogDelegateView:
- bool Accept() override;
- ui::ModalType GetModalType() const override;
- base::string16 GetWindowTitle() const override;
- base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
- void WindowClosing() override;
-
- private:
- void UpdateLabel();
-
- LogoutConfirmationController* controller_;
- base::TimeTicks logout_time_;
-
- views::Label* label_;
-
- base::RepeatingTimer update_timer_;
-
- DISALLOW_COPY_AND_ASSIGN(LogoutConfirmationDialog);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_SYSTEM_CHROMEOS_SESSION_LOGOUT_CONFIRMATION_DIALOG_H_

Powered by Google App Engine
This is Rietveld 408576698