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

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

Issue 8227003: Views Bubble API adjustments and cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 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
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 2bf5df8881c7e7e6461d75f6add4358e9ea7ea7e..63c027882bce3f95c917a06e42da64b4c5dfc6d1 100644
--- a/ui/aura_shell/examples/window_type_launcher.cc
+++ b/ui/aura_shell/examples/window_type_launcher.cc
@@ -123,9 +123,8 @@ void WindowTypeLauncher::ButtonPressed(views::Button* sender,
ToplevelWindow::CreateToplevelWindow(ToplevelWindow::CreateParams());
} else if (sender == bubble_button_) {
gfx::Point origin = bubble_button_->bounds().origin();
- views::View::ConvertPointToWidget(bubble_button_->parent(), &origin);
- origin.Offset(10, bubble_button_->height() - 10);
- CreatePointyBubble(GetWidget()->GetNativeWindow(), origin);
+ views::View::ConvertPointToScreen(bubble_button_->parent(), &origin);
+ CreatePointyBubble(GetWidget(), origin);
} else if (sender == lock_button_) {
CreateLock();
} else if (sender == widgets_button_) {

Powered by Google App Engine
This is Rietveld 408576698