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

Side by Side Diff: ash/wm/drag_window_controller.cc

Issue 2596743002: Replace WM shadow types (on/off) and styles (small/inactive/active) (Closed)
Patch Set: one more mechanical change Created 3 years, 11 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
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 "ash/wm/drag_window_controller.h" 5 #include "ash/wm/drag_window_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/aura/wm_window_aura.h" 9 #include "ash/aura/wm_window_aura.h"
10 #include "ash/display/window_tree_host_manager.h" 10 #include "ash/display/window_tree_host_manager.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 aura::Window* container = root_window_->GetChildById(parent_id); 86 aura::Window* container = root_window_->GetChildById(parent_id);
87 87
88 drag_window_->SetType(ui::wm::WINDOW_TYPE_POPUP); 88 drag_window_->SetType(ui::wm::WINDOW_TYPE_POPUP);
89 drag_window_->SetTransparent(true); 89 drag_window_->SetTransparent(true);
90 drag_window_->Init(ui::LAYER_TEXTURED); 90 drag_window_->Init(ui::LAYER_TEXTURED);
91 drag_window_->SetName("DragWindow"); 91 drag_window_->SetName("DragWindow");
92 drag_window_->set_id(kShellWindowId_PhantomWindow); 92 drag_window_->set_id(kShellWindowId_PhantomWindow);
93 drag_window_->SetProperty(aura::client::kAnimationsDisabledKey, true); 93 drag_window_->SetProperty(aura::client::kAnimationsDisabledKey, true);
94 container->AddChild(drag_window_); 94 container->AddChild(drag_window_);
95 drag_window_->SetBounds(bounds_in_screen); 95 drag_window_->SetBounds(bounds_in_screen);
96 SetShadowType(drag_window_, ::wm::SHADOW_TYPE_RECTANGULAR); 96 SetShadowElevation(drag_window_, ::wm::ShadowElevation::LARGE);
97 97
98 RecreateWindowLayers(original_window); 98 RecreateWindowLayers(original_window);
99 layer_owner_->root()->SetVisible(true); 99 layer_owner_->root()->SetVisible(true);
100 drag_window_->layer()->Add(layer_owner_->root()); 100 drag_window_->layer()->Add(layer_owner_->root());
101 drag_window_->layer()->StackAtTop(layer_owner_->root()); 101 drag_window_->layer()->StackAtTop(layer_owner_->root());
102 102
103 // Show the widget after all the setups. 103 // Show the widget after all the setups.
104 drag_window_->Show(); 104 drag_window_->Show();
105 105
106 // Fade the window in. 106 // Fade the window in.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 layers.pop_back(); 244 layers.pop_back();
245 if (layer->delegate()) 245 if (layer->delegate())
246 layer->delegate()->OnPaintLayer(context); 246 layer->delegate()->OnPaintLayer(context);
247 for (auto* child : layer->children()) 247 for (auto* child : layer->children())
248 layers.push_back(child); 248 layers.push_back(child);
249 } 249 }
250 } 250 }
251 } 251 }
252 252
253 } // namespace ash 253 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | chrome/browser/chromeos/accessibility/chromevox_panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698