summaryrefslogtreecommitdiffstats
path: root/ui/views/widget/widget_aura_utils.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 19:22:59 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-10 19:22:59 +0000
commite94bd9153b6da2e06186943648143224086d0e94 (patch)
treec181b61047cf016c1782b02cce82bd842126b0f2 /ui/views/widget/widget_aura_utils.h
parent1a1980d8e65c7ce79b36cb8c88f8ce6c42f82df6 (diff)
downloadchromium_src-e94bd9153b6da2e06186943648143224086d0e94.zip
chromium_src-e94bd9153b6da2e06186943648143224086d0e94.tar.gz
chromium_src-e94bd9153b6da2e06186943648143224086d0e94.tar.bz2
An attempt at parenting transients more accurately in desktop-aura.
. Make sure to set the appropriate aura::Window type based on the views::Widget::initParams::Type that is supplied. . Add the ability to specify a stacking client per RootWindow. This stacking client is consulted if a _transient_parent_ is supplied to Widget::Init(). The transient parent's root window's stacking client is consulted when no parent can be discerned. This stacking client is set by the DNWA and basically just returns the transient parent's root window. . Fix a random crash in the infobar code. BUG=none R=erg@chromium.org Review URL: https://codereview.chromium.org/11094034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@161149 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget/widget_aura_utils.h')
-rw-r--r--ui/views/widget/widget_aura_utils.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/ui/views/widget/widget_aura_utils.h b/ui/views/widget/widget_aura_utils.h
new file mode 100644
index 0000000..8f0bfcc
--- /dev/null
+++ b/ui/views/widget/widget_aura_utils.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_WIDGET_WIDGET_AURA_UTILS_H_
+#define UI_VIEWS_WIDGET_WIDGET_AURA_UTILS_H_
+
+#include "ui/aura/client/window_types.h"
+#include "ui/views/widget/widget.h"
+
+// Functions shared by native_widget_aura.cc and desktop_native_widget_aura.cc:
+
+namespace views {
+
+aura::client::WindowType GetAuraWindowTypeForWidgetType(
+ Widget::InitParams::Type type);
+
+} // namespace views
+
+#endif // UI_VIEWS_WIDGET_WIDGET_AURA_UTILS_H_