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

Side by Side Diff: ui/views/controls/message_box_view.h

Issue 2107493002: Offer user to send feedback from profile error dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pkasting's & droger's Created 4 years, 4 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
« no previous file with comments | « sql/error_delegate_util.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ 5 #ifndef UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_
6 #define UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ 6 #define UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 explicit MessageBoxView(const InitParams& params); 56 explicit MessageBoxView(const InitParams& params);
57 57
58 ~MessageBoxView() override; 58 ~MessageBoxView() override;
59 59
60 // Returns the text box. 60 // Returns the text box.
61 views::Textfield* text_box() { return prompt_field_; } 61 views::Textfield* text_box() { return prompt_field_; }
62 62
63 // Returns user entered data in the prompt field. 63 // Returns user entered data in the prompt field.
64 base::string16 GetInputText(); 64 base::string16 GetInputText();
65 65
66 // Returns true if this message box has a visible checkbox, false otherwise.
67 bool HasCheckBox() const { return !!checkbox_; }
68
66 // Returns true if a checkbox is selected, false otherwise. (And false if 69 // Returns true if a checkbox is selected, false otherwise. (And false if
67 // the message box has no checkbox.) 70 // the message box has no checkbox.)
68 bool IsCheckBoxSelected(); 71 bool IsCheckBoxSelected();
69 72
70 // Adds a checkbox with the specified label to the message box if this is the 73 // Adds a checkbox with the specified label to the message box if this is the
71 // first call. Otherwise, it changes the label of the current checkbox. To 74 // first call. Otherwise, it changes the label of the current checkbox. To
72 // start, the message box has no checkbox until this function is called. 75 // start, the message box has no checkbox until this function is called.
73 void SetCheckBoxLabel(const base::string16& label); 76 void SetCheckBoxLabel(const base::string16& label);
74 77
75 // Sets the state of the check-box. 78 // Sets the state of the check-box.
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 119
117 // Spacing between rows in the grid layout. 120 // Spacing between rows in the grid layout.
118 int inter_row_vertical_spacing_; 121 int inter_row_vertical_spacing_;
119 122
120 DISALLOW_COPY_AND_ASSIGN(MessageBoxView); 123 DISALLOW_COPY_AND_ASSIGN(MessageBoxView);
121 }; 124 };
122 125
123 } // namespace views 126 } // namespace views
124 127
125 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_ 128 #endif // UI_VIEWS_CONTROLS_MESSAGE_BOX_VIEW_H_
OLDNEW
« no previous file with comments | « sql/error_delegate_util.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698