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

Unified Diff: ui/views/widget/native_widget_mac_unittest.mm

Issue 1050713002: aura: Remove layerless windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: layerless: rebase Created 5 years, 9 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 | « ui/views/widget/native_widget_mac.mm ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/native_widget_mac_unittest.mm
diff --git a/ui/views/widget/native_widget_mac_unittest.mm b/ui/views/widget/native_widget_mac_unittest.mm
index af715a15d7deeff67abb15607e163927b1d9cea7..ccc1e4c48c56de2886e7939469c70ea04e32ed59 100644
--- a/ui/views/widget/native_widget_mac_unittest.mm
+++ b/ui/views/widget/native_widget_mac_unittest.mm
@@ -163,8 +163,9 @@ class PaintCountView : public View {
TEST_F(NativeWidgetMacTest, MiniaturizeExternally) {
Widget* widget = new Widget;
Widget::InitParams init_params(Widget::InitParams::TYPE_WINDOW);
- // Don't add a layer, so that calls to paint can be observed synchronously.
- init_params.layer_type = aura::WINDOW_LAYER_NONE;
+ // Make the layer not drawn, so that calls to paint can be observed
+ // synchronously.
+ init_params.layer_type = ui::LAYER_NOT_DRAWN;
widget->Init(init_params);
PaintCountView* view = new PaintCountView();
« no previous file with comments | « ui/views/widget/native_widget_mac.mm ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698