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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 23493022: Don't pass in WS_EX_TRANSPARENT in the window style in classic mode in AURA as that causes the wind… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" 5 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/aura/client/activation_client.h" 8 #include "ui/aura/client/activation_client.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 new DesktopNativeWidgetTopLevelHandler; 70 new DesktopNativeWidgetTopLevelHandler;
71 71
72 child_window->SetBounds(gfx::Rect(bounds.size())); 72 child_window->SetBounds(gfx::Rect(bounds.size()));
73 73
74 Widget::InitParams init_params; 74 Widget::InitParams init_params;
75 init_params.type = full_screen ? Widget::InitParams::TYPE_WINDOW : 75 init_params.type = full_screen ? Widget::InitParams::TYPE_WINDOW :
76 Widget::InitParams::TYPE_POPUP; 76 Widget::InitParams::TYPE_POPUP;
77 init_params.bounds = bounds; 77 init_params.bounds = bounds;
78 init_params.ownership = Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET; 78 init_params.ownership = Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET;
79 init_params.layer_type = ui::LAYER_NOT_DRAWN; 79 init_params.layer_type = ui::LAYER_NOT_DRAWN;
80 init_params.accept_events = full_screen;
81 init_params.can_activate = full_screen; 80 init_params.can_activate = full_screen;
82
83 // This widget instance will get deleted when the window is 81 // This widget instance will get deleted when the window is
84 // destroyed. 82 // destroyed.
85 top_level_handler->top_level_widget_ = new Widget(); 83 top_level_handler->top_level_widget_ = new Widget();
86 top_level_handler->top_level_widget_->Init(init_params); 84 top_level_handler->top_level_widget_->Init(init_params);
87 85
88 top_level_handler->top_level_widget_->SetFullscreen(full_screen); 86 top_level_handler->top_level_widget_->SetFullscreen(full_screen);
89 top_level_handler->top_level_widget_->Show(); 87 top_level_handler->top_level_widget_->Show();
90 88
91 aura::Window* native_window = 89 aura::Window* native_window =
92 top_level_handler->top_level_widget_->GetNativeView(); 90 top_level_handler->top_level_widget_->GetNativeView();
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 } 960 }
963 961
964 //////////////////////////////////////////////////////////////////////////////// 962 ////////////////////////////////////////////////////////////////////////////////
965 // DesktopNativeWidgetAura, NativeWidget implementation: 963 // DesktopNativeWidgetAura, NativeWidget implementation:
966 964
967 ui::EventHandler* DesktopNativeWidgetAura::GetEventHandler() { 965 ui::EventHandler* DesktopNativeWidgetAura::GetEventHandler() {
968 return this; 966 return this;
969 } 967 }
970 968
971 } // namespace views 969 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698