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

Side by Side Diff: chrome/browser/ui/views/autofill/save_card_bubble_views.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 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_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/autofill/save_card_bubble_controller.h" 9 #include "chrome/browser/ui/autofill/save_card_bubble_controller.h"
10 #include "chrome/browser/ui/autofill/save_card_bubble_view.h" 10 #include "chrome/browser/ui/autofill/save_card_bubble_view.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // views::BubbleDialogDelegateView 44 // views::BubbleDialogDelegateView
45 views::View* CreateExtraView() override; 45 views::View* CreateExtraView() override;
46 views::View* CreateFootnoteView() override; 46 views::View* CreateFootnoteView() override;
47 bool Accept() override; 47 bool Accept() override;
48 bool Cancel() override; 48 bool Cancel() override;
49 bool Close() override; 49 bool Close() override;
50 int GetDialogButtons() const override; 50 int GetDialogButtons() const override;
51 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 51 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
52 bool ShouldDefaultButtonBeBlue() const override; 52 bool ShouldDefaultButtonBeBlue() const override;
53 53
54 // views::View 54 // views::DialogDelegateView
55 gfx::Size GetPreferredSize() const override; 55 gfx::Size GetUnsnappedPreferredSize() const override;
56 56
57 // views::WidgetDelegate 57 // views::WidgetDelegate
58 base::string16 GetWindowTitle() const override; 58 base::string16 GetWindowTitle() const override;
59 void WindowClosing() override; 59 void WindowClosing() override;
60 60
61 // views::LinkListener 61 // views::LinkListener
62 void LinkClicked(views::Link* source, int event_flags) override; 62 void LinkClicked(views::Link* source, int event_flags) override;
63 63
64 // views::StyledLabelListener 64 // views::StyledLabelListener
65 void StyledLabelLinkClicked(views::StyledLabel* label, 65 void StyledLabelLinkClicked(views::StyledLabel* label,
(...skipping 11 matching lines...) Expand all
77 SaveCardBubbleController* controller_; // Weak reference. 77 SaveCardBubbleController* controller_; // Weak reference.
78 78
79 views::Link* learn_more_link_; 79 views::Link* learn_more_link_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleViews); 81 DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleViews);
82 }; 82 };
83 83
84 } // namespace autofill 84 } // namespace autofill
85 85
86 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_ 86 #endif // CHROME_BROWSER_UI_VIEWS_AUTOFILL_SAVE_CARD_BUBBLE_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698