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

Unified Diff: ui/views/examples/bubble_example.cc

Issue 13602010: views: Convert more TextButtons to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/accessible_pane_view_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/examples/bubble_example.cc
diff --git a/ui/views/examples/bubble_example.cc b/ui/views/examples/bubble_example.cc
index 936bc3ae4b947d58d92ff6006b2ec0cfe875d792..85bf0efe22d476875c7555a2eafbf2acd80f1123 100644
--- a/ui/views/examples/bubble_example.cc
+++ b/ui/views/examples/bubble_example.cc
@@ -6,7 +6,7 @@
#include "base/utf_string_conversions.h"
#include "ui/views/bubble/bubble_delegate.h"
-#include "ui/views/controls/button/text_button.h"
+#include "ui/views/controls/button/label_button.h"
#include "ui/views/controls/label.h"
#include "ui/views/layout/box_layout.h"
#include "ui/views/layout/fill_layout.h"
@@ -59,12 +59,11 @@ BubbleExample::BubbleExample() : ExampleBase("Bubble") {}
BubbleExample::~BubbleExample() {}
void BubbleExample::CreateExampleView(View* container) {
- container->SetLayoutManager(
- new BoxLayout(BoxLayout::kHorizontal, 0, 0, 1));
- round_ = new TextButton(this, kRoundConfig.label);
- arrow_ = new TextButton(this, kArrowConfig.label);
- fade_in_ = new TextButton(this, kFadeInConfig.label);
- fade_out_ = new TextButton(this, kFadeOutConfig.label);
+ container->SetLayoutManager(new BoxLayout(BoxLayout::kHorizontal, 0, 0, 1));
+ round_ = new LabelButton(this, kRoundConfig.label);
+ arrow_ = new LabelButton(this, kArrowConfig.label);
+ fade_in_ = new LabelButton(this, kFadeInConfig.label);
+ fade_out_ = new LabelButton(this, kFadeOutConfig.label);
container->AddChildView(round_);
container->AddChildView(arrow_);
container->AddChildView(fade_in_);
« no previous file with comments | « ui/views/accessible_pane_view_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698