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

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

Issue 2785683003: views: implement width snapping for DialogDelegateViews (Closed)
Patch Set: Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_AUTO_SIGNIN_FIRST_RUN_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_PASSWORDS_AUTO_SIGNIN_FIRST_RUN_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_AUTO_SIGNIN_FIRST_RUN_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_PASSWORDS_AUTO_SIGNIN_FIRST_RUN_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 ui::ModalType GetModalType() const override; 29 ui::ModalType GetModalType() const override;
30 base::string16 GetWindowTitle() const override; 30 base::string16 GetWindowTitle() const override;
31 bool ShouldShowWindowTitle() const override; 31 bool ShouldShowWindowTitle() const override;
32 bool ShouldShowCloseButton() const override; 32 bool ShouldShowCloseButton() const override;
33 views::View* GetInitiallyFocusedView() override; 33 views::View* GetInitiallyFocusedView() override;
34 void WindowClosing() override; 34 void WindowClosing() override;
35 35
36 // views::DialogDelegate: 36 // views::DialogDelegate:
37 int GetDialogButtons() const override; 37 int GetDialogButtons() const override;
38 38
39 // views::View 39 // views::DialogDelegateView
Peter Kasting 2017/03/30 00:35:35 Nit: Combine with two sections above
40 gfx::Size GetPreferredSize() const override; 40 gfx::Size GetUnsnappedPreferredSize() const override;
41 41
42 // views::ButtonListener: 42 // views::ButtonListener:
43 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 43 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
44 44
45 // views::StyledLabelListener: 45 // views::StyledLabelListener:
46 void StyledLabelLinkClicked(views::StyledLabel* label, 46 void StyledLabelLinkClicked(views::StyledLabel* label,
47 const gfx::Range& range, 47 const gfx::Range& range,
48 int event_flags) override; 48 int event_flags) override;
49 49
50 // Sets up the child views. 50 // Sets up the child views.
51 void InitWindow(); 51 void InitWindow();
52 52
53 views::View* ok_button_; 53 views::View* ok_button_;
54 views::View* turn_off_button_; 54 views::View* turn_off_button_;
55 55
56 // A weak pointer to the controller. 56 // A weak pointer to the controller.
57 PasswordDialogController* controller_; 57 PasswordDialogController* controller_;
58 content::WebContents* const web_contents_; 58 content::WebContents* const web_contents_;
59 59
60 DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunDialogView); 60 DISALLOW_COPY_AND_ASSIGN(AutoSigninFirstRunDialogView);
61 }; 61 };
62 62
63 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_AUTO_SIGNIN_FIRST_RUN_DIALOG_VIEW_H _ 63 #endif // CHROME_BROWSER_UI_VIEWS_PASSWORDS_AUTO_SIGNIN_FIRST_RUN_DIALOG_VIEW_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698