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

Side by Side Diff: chrome/browser/ui/views/content_setting_bubble_contents.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTENT_SETTING_BUBBLE_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_
6 #define CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 public views::LinkListener, 45 public views::LinkListener,
46 public views::ComboboxListener { 46 public views::ComboboxListener {
47 public: 47 public:
48 ContentSettingBubbleContents( 48 ContentSettingBubbleContents(
49 ContentSettingBubbleModel* content_setting_bubble_model, 49 ContentSettingBubbleModel* content_setting_bubble_model,
50 content::WebContents* web_contents, 50 content::WebContents* web_contents,
51 views::View* anchor_view, 51 views::View* anchor_view,
52 views::BubbleBorder::Arrow arrow); 52 views::BubbleBorder::Arrow arrow);
53 ~ContentSettingBubbleContents() override; 53 ~ContentSettingBubbleContents() override;
54 54
55 gfx::Size GetPreferredSize() const override; 55 gfx::Size GetUnsnappedPreferredSize() const override;
56 56
57 protected: 57 protected:
58 // views::BubbleDialogDelegateView: 58 // views::BubbleDialogDelegateView:
59 void Init() override; 59 void Init() override;
60 View* CreateExtraView() override; 60 View* CreateExtraView() override;
61 bool Accept() override; 61 bool Accept() override;
62 bool Close() override; 62 bool Close() override;
63 int GetDialogButtons() const override; 63 int GetDialogButtons() const override;
64 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 64 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
65 65
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 views::LabelButton* manage_button_; 118 views::LabelButton* manage_button_;
119 views::Link* learn_more_link_; 119 views::Link* learn_more_link_;
120 120
121 // Combobox models the bubble owns. 121 // Combobox models the bubble owns.
122 std::list<MediaComboboxModel> combobox_models_; 122 std::list<MediaComboboxModel> combobox_models_;
123 123
124 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents); 124 DISALLOW_IMPLICIT_CONSTRUCTORS(ContentSettingBubbleContents);
125 }; 125 };
126 126
127 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_ 127 #endif // CHROME_BROWSER_UI_VIEWS_CONTENT_SETTING_BUBBLE_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698