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

Side by Side Diff: chrome/browser/ui/views/passwords/account_chooser_dialog_view.h

Issue 1686433002: Remove DialogDelegate::OnClosed() which is redundant with (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PASSWORDS_ACCOUNT_CHOOSER_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_ACCOUNT_CHOOSER_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_ACCOUNT_CHOOSER_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_ACCOUNT_CHOOSER_DIALOG_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/passwords/password_dialog_prompts.h" 9 #include "chrome/browser/ui/passwords/password_dialog_prompts.h"
10 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
(...skipping 18 matching lines...) Expand all
29 // AccountChooserPrompt: 29 // AccountChooserPrompt:
30 void ShowAccountChooser() override; 30 void ShowAccountChooser() override;
31 void ControllerGone() override; 31 void ControllerGone() override;
32 32
33 private: 33 private:
34 // WidgetDelegate: 34 // WidgetDelegate:
35 ui::ModalType GetModalType() const override; 35 ui::ModalType GetModalType() const override;
36 base::string16 GetWindowTitle() const override; 36 base::string16 GetWindowTitle() const override;
37 bool ShouldShowWindowTitle() const override; 37 bool ShouldShowWindowTitle() const override;
38 bool ShouldShowCloseButton() const override; 38 bool ShouldShowCloseButton() const override;
39 void WindowClosing() override;
39 40
40 // DialogDelegate: 41 // DialogDelegate:
41 int GetDialogButtons() const override; 42 int GetDialogButtons() const override;
42 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 43 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
43 void OnClosed() override;
44 44
45 // views::View 45 // views::View
46 gfx::Size GetPreferredSize() const override; 46 gfx::Size GetPreferredSize() const override;
47 47
48 // StyledLabelListener: 48 // StyledLabelListener:
49 void StyledLabelLinkClicked(views::StyledLabel* label, 49 void StyledLabelLinkClicked(views::StyledLabel* label,
50 const gfx::Range& range, 50 const gfx::Range& range,
51 int event_flags) override; 51 int event_flags) override;
52 52
53 // ButtonListener: 53 // ButtonListener:
54 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 54 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
55 55
56 // Sets up the child views. 56 // Sets up the child views.
57 void InitWindow(); 57 void InitWindow();
58 58
59 // A weak pointer to the controller. 59 // A weak pointer to the controller.
60 PasswordDialogController* controller_; 60 PasswordDialogController* controller_;
61 content::WebContents* web_contents_; 61 content::WebContents* web_contents_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(AccountChooserDialogView); 63 DISALLOW_COPY_AND_ASSIGN(AccountChooserDialogView);
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_ACCOUNT_CHOOSER_DIALOG_VIEW_H_ 66 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_ACCOUNT_CHOOSER_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/first_run_dialog.cc ('k') | chrome/browser/ui/views/passwords/account_chooser_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698