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

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

Issue 7015051: Re-land: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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 | « chrome/browser/ui/views/constrained_window_views.h ('k') | chrome/browser/ui/views/dom_view_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/constrained_window_views.cc
===================================================================
--- chrome/browser/ui/views/constrained_window_views.cc (revision 85284)
+++ chrome/browser/ui/views/constrained_window_views.cc (working copy)
@@ -576,8 +576,11 @@
NativeConstrainedWindow::CreateNativeConstrainedWindow(this))) {
GetWindow()->non_client_view()->SetFrameView(CreateFrameViewForWindow());
views::Window::InitParams params(window_delegate);
+ params.native_window = native_constrained_window_->AsNativeWindow();
params.widget_init_params.child = true;
params.widget_init_params.parent = owner->GetNativeView();
+ params.widget_init_params.native_widget =
+ native_constrained_window_->AsNativeWindow()->AsNativeWidget();
GetWindow()->InitWindow(params);
}
@@ -608,7 +611,7 @@
NotificationService::current()->Notify(NotificationType::CWINDOW_CLOSED,
Source<ConstrainedWindow>(this),
NotificationService::NoDetails());
- GetWindow()->CloseWindow();
+ GetWindow()->Close();
}
void ConstrainedWindowViews::FocusConstrainedWindow() {
@@ -621,6 +624,13 @@
}
////////////////////////////////////////////////////////////////////////////////
+// ConstrainedWindowViews, views::Window overrides:
+
+views::NonClientFrameView* ConstrainedWindowViews::CreateFrameViewForWindow() {
+ return new ConstrainedWindowFrameView(this);
+}
+
+////////////////////////////////////////////////////////////////////////////////
// ConstrainedWindowViews, NativeConstrainedWindowDelegate implementation:
void ConstrainedWindowViews::OnNativeConstrainedWindowDestroyed() {
@@ -633,10 +643,12 @@
GetWindow()->Activate();
}
-views::NonClientFrameView* ConstrainedWindowViews::CreateFrameViewForWindow() {
- return new ConstrainedWindowFrameView(this);
+views::internal::NativeWindowDelegate*
+ ConstrainedWindowViews::AsNativeWindowDelegate() {
+ return this;
}
+
////////////////////////////////////////////////////////////////////////////////
// ConstrainedWindow, public:
« no previous file with comments | « chrome/browser/ui/views/constrained_window_views.h ('k') | chrome/browser/ui/views/dom_view_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698