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

Unified Diff: chrome/browser/ui/views/native_constrained_window_aura.cc

Issue 10905290: Keep a web dialog window centered over the content area (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better. Created 8 years, 3 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
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/native_constrained_window_aura.cc
diff --git a/chrome/browser/ui/views/native_constrained_window_aura.cc b/chrome/browser/ui/views/native_constrained_window_aura.cc
index 4ea8ea57ab6b6d20ccb2e4b6edbfb51e20ec6dc6..77a6de5e13e8d9ffd74c0567d65d64cc7559ef57 100644
--- a/chrome/browser/ui/views/native_constrained_window_aura.cc
+++ b/chrome/browser/ui/views/native_constrained_window_aura.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/views/constrained_window_views.h"
+#include "ui/aura/client/aura_constants.h"
+#include "ui/aura/window.h"
#include "ui/views/widget/native_widget_aura.h"
class NativeConstrainedWindowAura : public NativeConstrainedWindow,
@@ -13,6 +15,7 @@ class NativeConstrainedWindowAura : public NativeConstrainedWindow,
NativeConstrainedWindowDelegate* delegate)
: views::NativeWidgetAura(delegate->AsNativeWidgetDelegate()),
delegate_(delegate) {
+ GetNativeWindow()->SetProperty(aura::client::kConstrainedWindowKey, true);
}
virtual ~NativeConstrainedWindowAura() {
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698