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

Unified Diff: ui/views/widget/widget.cc

Issue 83783003: linux aura: Show the drag-image when available. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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/views/widget/widget.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/widget.cc
diff --git a/ui/views/widget/widget.cc b/ui/views/widget/widget.cc
index 1e9bd65f83cfa3ba2d609cfc710a848da2629309..469d4560cb06353f9ea949640ce58162ccc78318 100644
--- a/ui/views/widget/widget.cc
+++ b/ui/views/widget/widget.cc
@@ -73,7 +73,8 @@ class DefaultWidgetDelegate : public WidgetDelegate {
DefaultWidgetDelegate(Widget* widget, const Widget::InitParams& params)
: widget_(widget),
can_activate_(!params.child &&
- params.type != Widget::InitParams::TYPE_POPUP) {
+ params.type != Widget::InitParams::TYPE_POPUP &&
+ params.type != Widget::InitParams::TYPE_DRAG) {
}
virtual ~DefaultWidgetDelegate() {}
@@ -141,8 +142,9 @@ Widget::InitParams::InitParams(Type type)
ViewsDelegate::views_delegate->UseTransparentWindows()) ?
TRANSLUCENT_WINDOW : INFER_OPACITY),
accept_events(true),
- can_activate(type != TYPE_POPUP && type != TYPE_MENU),
- keep_on_top(type == TYPE_MENU),
+ can_activate(type != TYPE_POPUP && type != TYPE_MENU &&
+ type != TYPE_DRAG),
+ keep_on_top(type == TYPE_MENU || type == TYPE_DRAG),
ownership(NATIVE_WIDGET_OWNS_WIDGET),
mirror_origin_in_rtl(false),
has_dropshadow(false),
« no previous file with comments | « ui/views/widget/widget.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698