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

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

Issue 53703002: Remove IDR_BUBBLE_SHADOW, use IDR_WINDOW_BUBBLE_SHADOW_BIG. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove IDR_BUBBLE_SHADOW, use IDR_WINDOW_BUBBLE_SHADOW_BIG. Created 7 years, 2 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/examples/bubble_example.h ('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 b9498f4ac96c6c91842540cd91dacb04e9740caa..6869b4634a1aeb10f28b69572fff4b9e147c4bab 100644
--- a/ui/views/examples/bubble_example.cc
+++ b/ui/views/examples/bubble_example.cc
@@ -71,8 +71,6 @@ void BubbleExample::CreateExampleView(View* container) {
PrintStatus("Click with optional modifiers: [Ctrl] for set_arrow(NONE), "
"[Alt] for set_arrow(FLOAT), or [Shift] to reverse the arrow iteration.");
container->SetLayoutManager(new BoxLayout(BoxLayout::kHorizontal, 0, 0, 10));
- shadow_ = new LabelButton(this, ASCIIToUTF16("Shadow"));
- container->AddChildView(shadow_);
no_shadow_ = new LabelButton(this, ASCIIToUTF16("No Shadow"));
container->AddChildView(no_shadow_);
big_shadow_ = new LabelButton(this, ASCIIToUTF16("Big Shadow"));
@@ -100,9 +98,7 @@ void BubbleExample::ButtonPressed(Button* sender, const ui::Event& event) {
ExampleBubble* bubble = new ExampleBubble(sender, arrow);
bubble->set_color(colors[(color_index++) % arraysize(colors)]);
- if (sender == shadow_)
- bubble->set_shadow(BubbleBorder::SHADOW);
- else if (sender == no_shadow_)
+ if (sender == no_shadow_)
bubble->set_shadow(BubbleBorder::NO_SHADOW);
else if (sender == big_shadow_)
bubble->set_shadow(BubbleBorder::BIG_SHADOW);
« no previous file with comments | « ui/views/examples/bubble_example.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698