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

Unified Diff: ui/views/touchui/touch_editing_menu.cc

Issue 177173007: Change type of touch selection handles to POPUP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 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 side-by-side diff with in-line comments
Download patch
Index: ui/views/touchui/touch_editing_menu.cc
diff --git a/ui/views/touchui/touch_editing_menu.cc b/ui/views/touchui/touch_editing_menu.cc
index 0536e7463964b08fe155c3499eafe731fecd01bc..55c7b804b23a641d6aeb0352e23f57ca2ff0c4f8 100644
--- a/ui/views/touchui/touch_editing_menu.cc
+++ b/ui/views/touchui/touch_editing_menu.cc
@@ -6,6 +6,7 @@
#include "base/strings/utf_string_conversions.h"
#include "grit/ui_strings.h"
+#include "ui/aura/window.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/canvas.h"
@@ -54,6 +55,12 @@ TouchEditingMenuView::TouchEditingMenuView(
kSpacingBetweenButtons));
CreateButtons();
views::BubbleDelegateView::CreateBubble(this);
+ // A transient child is not stacked above its parent upon creation; so, we
+ // do it manually here.
+ // TODO(mohsen): Remove after the above bug is fixed in the transient window
+ // management: crbug.com/352371.
+ GetWidget()->GetNativeView()->parent()->StackChildAbove(
+ GetWidget()->GetNativeView(), context);
sadrul 2014/03/14 18:30:07 What does the fix for this look like? Can we land
mohsen 2014/03/14 19:15:25 2014/03/14 18:30:07, sadrul wrote:
GetWidget()->Show();
}
« no previous file with comments | « no previous file | ui/views/touchui/touch_selection_controller_impl.h » ('j') | ui/views/touchui/touch_selection_controller_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698