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

Unified Diff: chrome/browser/ui/views/infobars/infobar_view.h

Issue 1525163004: First stab at MD text buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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: chrome/browser/ui/views/infobars/infobar_view.h
diff --git a/chrome/browser/ui/views/infobars/infobar_view.h b/chrome/browser/ui/views/infobars/infobar_view.h
index 30f972670dd05594e05687f38bf8b633ca0a2b7f..919284804a3a0f81e201fc62f8627727d3db02b8 100644
--- a/chrome/browser/ui/views/infobars/infobar_view.h
+++ b/chrome/browser/ui/views/infobars/infobar_view.h
@@ -58,6 +58,11 @@ class InfoBarView : public infobars::InfoBar,
// Creates a focusable button for use on an infobar. The appearance is
// customized for infobars (except in Material mode).
// NOTE: Subclasses must ignore button presses if we're unowned.
+ static views::Button* CreateTextButton(views::ButtonListener* listener,
+ const base::string16& text);
+
+ // Like CreateTextButton, but specifically creates a LabelButton.
+ // TODO(estade): remove this function when MD is default.
static views::LabelButton* CreateLabelButton(views::ButtonListener* listener,
const base::string16& text);
« no previous file with comments | « chrome/browser/ui/views/infobars/confirm_infobar.cc ('k') | chrome/browser/ui/views/infobars/infobar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698