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

Unified 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: sky's comments and some improvements to the code. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/controls/message_box_view.h
diff --git a/ui/views/controls/message_box_view.h b/ui/views/controls/message_box_view.h
index 2d83532c8989d37d3ebbff900a60dc7782d20766..af6905dafab0d4fe012999da3c2917c0be5cd027 100644
--- a/ui/views/controls/message_box_view.h
+++ b/ui/views/controls/message_box_view.h
@@ -63,6 +63,9 @@ class VIEWS_EXPORT MessageBoxView : public View {
// Returns user entered data in the prompt field.
base::string16 GetInputText();
+ // Returns true if this message box has a visible checkbox, false otherwise.
+ bool HasCheckBox() const { return !!checkbox_; }
+
// Returns true if a checkbox is selected, false otherwise. (And false if
// the message box has no checkbox.)
bool IsCheckBoxSelected();
« components/webdata_services/web_data_service_wrapper.h ('K') | « sql/connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698