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

Side by Side Diff: ash/common/wm/window_cycle_list.cc

Issue 2383263002: Generalize layer mirroring for phantom windows (Closed)
Patch Set: Observe layer via nested class Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/common/wm/window_cycle_list.h" 5 #include "ash/common/wm/window_cycle_list.h"
6 6
7 #include <list> 7 #include <list>
8 #include <map> 8 #include <map>
9 9
10 #include "ash/common/shell_window_ids.h" 10 #include "ash/common/shell_window_ids.h"
11 #include "ash/common/wm/forwarding_layer_delegate.h"
12 #include "ash/common/wm/mru_window_tracker.h" 11 #include "ash/common/wm/mru_window_tracker.h"
13 #include "ash/common/wm/window_state.h" 12 #include "ash/common/wm/window_state.h"
14 #include "ash/common/wm_root_window_controller.h" 13 #include "ash/common/wm_root_window_controller.h"
15 #include "ash/common/wm_shell.h" 14 #include "ash/common/wm_shell.h"
16 #include "ash/common/wm_window.h" 15 #include "ash/common/wm_window.h"
17 #include "base/command_line.h" 16 #include "base/command_line.h"
18 #include "ui/accessibility/ax_view_state.h" 17 #include "ui/accessibility/ax_view_state.h"
19 #include "ui/compositor/scoped_layer_animation_settings.h" 18 #include "ui/compositor/scoped_layer_animation_settings.h"
20 #include "ui/display/display.h" 19 #include "ui/display/display.h"
21 #include "ui/display/screen.h" 20 #include "ui/display/screen.h"
(...skipping 602 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 widget->Init(params); 623 widget->Init(params);
625 624
626 screen_observer_.Add(display::Screen::GetScreen()); 625 screen_observer_.Add(display::Screen::GetScreen());
627 widget->Show(); 626 widget->Show();
628 widget->SetCapture(cycle_view_); 627 widget->SetCapture(cycle_view_);
629 widget->set_auto_release_capture(false); 628 widget->set_auto_release_capture(false);
630 cycle_ui_widget_ = widget; 629 cycle_ui_widget_ = widget;
631 } 630 }
632 631
633 } // namespace ash 632 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698