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

Unified Diff: chrome/browser/ui/views/chrome_cleaner_dialog.h

Issue 2883673002: Chrome Cleaner: Update modal dialog's strings (Closed)
Patch Set: Moved to the non-android section in BUILD file. 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 | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/chrome_cleaner_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/chrome_cleaner_dialog.h
diff --git a/chrome/browser/ui/views/chrome_cleaner_dialog.h b/chrome/browser/ui/views/chrome_cleaner_dialog.h
deleted file mode 100644
index bc6209229f7c57c6d5d10d0c1c88094c13b7a0a0..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/chrome_cleaner_dialog.h
+++ /dev/null
@@ -1,70 +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.
-
-#ifndef CHROME_BROWSER_UI_VIEWS_CHROME_CLEANER_DIALOG_H_
-#define CHROME_BROWSER_UI_VIEWS_CHROME_CLEANER_DIALOG_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "ui/views/controls/button/button.h"
-#include "ui/views/window/dialog_delegate.h"
-
-class Browser;
-
-namespace safe_browsing {
-class ChromeCleanerDialogController;
-}
-
-// A modal dialog asking the user if they want to remove harmful software from
-// their computers by running the Chrome Cleanup tool.
-//
-// The strings and icons used in the dialog are provided by a
-// |ChromeCleanerDialogController| object, which will also receive information
-// about how the user interacts with the dialog. The controller object owns
-// itself and will delete itself once it has received information about the
-// user's interaction with the dialog. See the |ChromeCleanerDialogController|
-// class's description for more details.
-class ChromeCleanerDialog : public views::DialogDelegateView,
- public views::ButtonListener {
- public:
- // The |controller| object manages its own lifetime and is not owned by
- // |ChromeCleanerDialog|. See the description of the
- // |ChromeCleanerDialogController| class for details.
- explicit ChromeCleanerDialog(
- safe_browsing::ChromeCleanerDialogController* controller);
- ~ChromeCleanerDialog() override;
-
- void Show(Browser* browser);
-
- // ui::DialogModel overrides.
- bool ShouldDefaultButtonBeBlue() const override;
-
- // views::WidgetDelegate overrides.
- ui::ModalType GetModalType() const override;
- base::string16 GetWindowTitle() const override;
-
- // views::DialogDelegate overrides.
- base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
- views::View* CreateExtraView() override;
- bool Accept() override;
- bool Cancel() override;
- bool Close() override;
-
- // views::View overrides.
- gfx::Size GetPreferredSize() const override;
-
- // views::ButtonListener overrides.
- void ButtonPressed(views::Button* sender, const ui::Event& event) override;
-
- private:
- Browser* browser_;
- // The pointer will be set to nullptr once the controller has been notified of
- // user interaction since the controller can delete itself after that point.
- safe_browsing::ChromeCleanerDialogController* controller_;
-
- DISALLOW_COPY_AND_ASSIGN(ChromeCleanerDialog);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_CHROME_CLEANER_DIALOG_H_
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/views/chrome_cleaner_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698