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

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

Issue 8598024: Now that we are doing a hard-cut-over to Aura, remove a bunch of *Views based classes that are ob... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | chrome/browser/ui/views/dom_view.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 110826)
+++ chrome/browser/ui/views/constrained_window_views.cc (working copy)
@@ -607,20 +607,8 @@
views::Widget::InitParams params;
params.delegate = widget_delegate;
params.native_widget = native_constrained_window_->AsNativeWidget();
-
- if (views::Widget::IsPureViews() &&
- views::ViewsDelegate::views_delegate &&
- views::ViewsDelegate::views_delegate->GetDefaultParentView()) {
- // Don't set parent so that constrained window is attached to
- // desktop. This is necessary for key events to work under views desktop
- // because key events need to be sent to toplevel window
- // which has an inputmethod object that knows where to forward
- // event.
- } else {
- params.child = true;
- params.parent = wrapper->tab_contents()->GetNativeView();
- }
-
+ params.child = true;
+ params.parent = wrapper->tab_contents()->GetNativeView();
Init(params);
wrapper_->constrained_window_tab_helper()->AddConstrainedDialog(this);
« no previous file with comments | « chrome/browser/ui/views/chrome_views_delegate.cc ('k') | chrome/browser/ui/views/dom_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698