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

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

Issue 8368006: Support Windows native textfield, combobox, etc. in new bubbles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup changes, remove example test code. Created 9 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/examples/bubble_example.h" 5 #include "views/examples/bubble_example.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "views/bubble/bubble_delegate.h" 8 #include "views/bubble/bubble_delegate.h"
9 #include "views/controls/button/text_button.h" 9 #include "views/controls/button/text_button.h"
10 #include "views/controls/label.h" 10 #include "views/controls/label.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 views::View::ConvertPointToScreen(sender, &config.anchor_point); 87 views::View::ConvertPointToScreen(sender, &config.anchor_point);
88 88
89 ExampleBubbleDelegateView* bubble_delegate = 89 ExampleBubbleDelegateView* bubble_delegate =
90 new ExampleBubbleDelegateView(config); 90 new ExampleBubbleDelegateView(config);
91 views::Widget* bubble = views::BubbleDelegateView::CreateBubble( 91 views::Widget* bubble = views::BubbleDelegateView::CreateBubble(
92 bubble_delegate, example_view()->GetWidget()); 92 bubble_delegate, example_view()->GetWidget());
93 93
94 if (config.fade_in) 94 if (config.fade_in)
95 bubble_delegate->StartFade(true); 95 bubble_delegate->StartFade(true);
96 else 96 else
97 bubble->Show(); 97 bubble_delegate->Show();
98 98
99 if (config.fade_out) { 99 if (config.fade_out) {
100 bubble_delegate->set_close_on_esc(false); 100 bubble_delegate->set_close_on_esc(false);
101 bubble_delegate->StartFade(false); 101 bubble_delegate->StartFade(false);
102 } 102 }
103 } 103 }
104 104
105 } // namespace examples 105 } // namespace examples
OLDNEW
« views/bubble/bubble_delegate.cc ('K') | « views/bubble/bubble_delegate.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698