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

Unified Diff: ui/aura_shell/examples/window_type_launcher.cc

Issue 8368016: Rebase BookmarkBubble on the new views bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only SelectAll on the title textfield when the buble is first shown. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura_shell/examples/example_factory.h ('k') | views/bubble/bubble_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/examples/window_type_launcher.cc
diff --git a/ui/aura_shell/examples/window_type_launcher.cc b/ui/aura_shell/examples/window_type_launcher.cc
index 2b9312a79838ffe4fc1c53bb1e379e0119adc695..37cc5006f2e196aae087f4527e41523e3de5d11f 100644
--- a/ui/aura_shell/examples/window_type_launcher.cc
+++ b/ui/aura_shell/examples/window_type_launcher.cc
@@ -124,9 +124,7 @@ void WindowTypeLauncher::ButtonPressed(views::Button* sender,
} else if (sender == create_nonresizable_button_) {
ToplevelWindow::CreateToplevelWindow(ToplevelWindow::CreateParams());
} else if (sender == bubble_button_) {
- gfx::Point origin = bubble_button_->bounds().origin();
- views::View::ConvertPointToScreen(bubble_button_->parent(), &origin);
- CreatePointyBubble(GetWidget(), origin);
+ CreatePointyBubble(sender);
} else if (sender == lock_button_) {
CreateLock();
} else if (sender == widgets_button_) {
« no previous file with comments | « ui/aura_shell/examples/example_factory.h ('k') | views/bubble/bubble_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698