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

Side by Side Diff: ui/views/examples/bubble_example.cc

Issue 12897004: Remove BubbleDelegateView::Show(); call GetWidget()->Show() instead; etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixup more BubbleDelegateView::Show() calls. Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/bubble/tray_bubble_view.cc ('k') | ui/views/touchui/touch_editing_menu.cc » ('j') | 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 #include "ui/views/examples/bubble_example.h" 5 #include "ui/views/examples/bubble_example.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "ui/views/bubble/bubble_delegate.h" 8 #include "ui/views/bubble/bubble_delegate.h"
9 #include "ui/views/controls/button/text_button.h" 9 #include "ui/views/controls/button/text_button.h"
10 #include "ui/views/controls/label.h" 10 #include "ui/views/controls/label.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 config = kFadeOutConfig; 83 config = kFadeOutConfig;
84 84
85 config.anchor_view = sender; 85 config.anchor_view = sender;
86 ExampleBubbleDelegateView* bubble_delegate = 86 ExampleBubbleDelegateView* bubble_delegate =
87 new ExampleBubbleDelegateView(config); 87 new ExampleBubbleDelegateView(config);
88 BubbleDelegateView::CreateBubble(bubble_delegate); 88 BubbleDelegateView::CreateBubble(bubble_delegate);
89 89
90 if (config.fade_in) 90 if (config.fade_in)
91 bubble_delegate->StartFade(true); 91 bubble_delegate->StartFade(true);
92 else 92 else
93 bubble_delegate->Show(); 93 bubble_delegate->GetWidget()->Show();
94 94
95 if (config.fade_out) { 95 if (config.fade_out) {
96 bubble_delegate->set_close_on_esc(false); 96 bubble_delegate->set_close_on_esc(false);
97 bubble_delegate->StartFade(false); 97 bubble_delegate->StartFade(false);
98 } 98 }
99 } 99 }
100 100
101 } // namespace examples 101 } // namespace examples
102 } // namespace views 102 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/bubble/tray_bubble_view.cc ('k') | ui/views/touchui/touch_editing_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698