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

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: Add constrained window flag 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') | ui/aura/window.h » ('J')
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..6151ec4ec76afe3a32c5eb285d82f3d53f276f27 100644
--- a/chrome/browser/ui/views/native_constrained_window_aura.cc
+++ b/chrome/browser/ui/views/native_constrained_window_aura.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/constrained_window_views.h"
+#include "ui/aura/window.h"
#include "ui/views/widget/native_widget_aura.h"
class NativeConstrainedWindowAura : public NativeConstrainedWindow,
@@ -13,6 +14,7 @@ class NativeConstrainedWindowAura : public NativeConstrainedWindow,
NativeConstrainedWindowDelegate* delegate)
: views::NativeWidgetAura(delegate->AsNativeWidgetDelegate()),
delegate_(delegate) {
+ GetNativeWindow()->set_is_constrained_window(true);
}
virtual ~NativeConstrainedWindowAura() {
« no previous file with comments | « no previous file | content/browser/web_contents/web_contents_view_aura.cc » ('j') | ui/aura/window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698