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

Side by Side Diff: chrome/browser/ui/views/chrome_cleaner_dialog_win.h

Issue 2922263002: Fix style of profile error dialog. (Closed)
Patch Set: tapted's and pkasting's comments Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_CLEANER_DIALOG_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_CLEANER_DIALOG_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_CLEANER_DIALOG_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_CLEANER_DIALOG_WIN_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 20 matching lines...) Expand all
31 public: 31 public:
32 // The |controller| object manages its own lifetime and is not owned by 32 // The |controller| object manages its own lifetime and is not owned by
33 // |ChromeCleanerDialog|. See the description of the 33 // |ChromeCleanerDialog|. See the description of the
34 // |ChromeCleanerDialogController| class for details. 34 // |ChromeCleanerDialogController| class for details.
35 explicit ChromeCleanerDialog( 35 explicit ChromeCleanerDialog(
36 safe_browsing::ChromeCleanerDialogController* controller); 36 safe_browsing::ChromeCleanerDialogController* controller);
37 ~ChromeCleanerDialog() override; 37 ~ChromeCleanerDialog() override;
38 38
39 void Show(Browser* browser); 39 void Show(Browser* browser);
40 40
41 // ui::DialogModel overrides.
42 bool ShouldDefaultButtonBeBlue() const override;
43
44 // views::WidgetDelegate overrides. 41 // views::WidgetDelegate overrides.
45 ui::ModalType GetModalType() const override; 42 ui::ModalType GetModalType() const override;
46 base::string16 GetWindowTitle() const override; 43 base::string16 GetWindowTitle() const override;
47 44
48 // views::DialogDelegate overrides. 45 // views::DialogDelegate overrides.
49 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 46 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
50 views::View* CreateExtraView() override; 47 views::View* CreateExtraView() override;
51 bool Accept() override; 48 bool Accept() override;
52 bool Cancel() override; 49 bool Cancel() override;
53 bool Close() override; 50 bool Close() override;
54 51
55 // views::View overrides. 52 // views::View overrides.
56 gfx::Size CalculatePreferredSize() const override; 53 gfx::Size CalculatePreferredSize() const override;
57 54
58 // views::ButtonListener overrides. 55 // views::ButtonListener overrides.
59 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 56 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
60 57
61 private: 58 private:
62 Browser* browser_; 59 Browser* browser_;
63 // The pointer will be set to nullptr once the controller has been notified of 60 // The pointer will be set to nullptr once the controller has been notified of
64 // user interaction since the controller can delete itself after that point. 61 // user interaction since the controller can delete itself after that point.
65 safe_browsing::ChromeCleanerDialogController* controller_; 62 safe_browsing::ChromeCleanerDialogController* controller_;
66 63
67 DISALLOW_COPY_AND_ASSIGN(ChromeCleanerDialog); 64 DISALLOW_COPY_AND_ASSIGN(ChromeCleanerDialog);
68 }; 65 };
69 66
70 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_CLEANER_DIALOG_WIN_H_ 67 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_CLEANER_DIALOG_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/save_card_bubble_views.cc ('k') | chrome/browser/ui/views/chrome_cleaner_dialog_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698