OLD | NEW |
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/shell/window_watcher.h" | 5 #include "ash/shell/window_watcher.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/public/cpp/shelf_item.h" | 9 #include "ash/public/cpp/shelf_item.h" |
10 #include "ash/public/cpp/shell_window_ids.h" | 10 #include "ash/public/cpp/shell_window_ids.h" |
11 #include "ash/public/cpp/window_properties.h" | 11 #include "ash/public/cpp/window_properties.h" |
12 #include "ash/shelf/shelf_model.h" | 12 #include "ash/shelf/shelf_model.h" |
13 #include "ash/shelf/shelf_widget.h" | 13 #include "ash/shelf/shelf_widget.h" |
14 #include "ash/shell.h" | 14 #include "ash/shell.h" |
15 #include "ash/shell/window_watcher_shelf_item_delegate.h" | 15 #include "ash/shell/window_watcher_shelf_item_delegate.h" |
16 #include "ash/shell_port.h" | 16 #include "ash/shell_port.h" |
17 #include "ash/wm/window_util.h" | 17 #include "ash/wm/window_util.h" |
18 #include "ash/wm_window.h" | |
19 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
20 #include "ui/aura/window.h" | 19 #include "ui/aura/window.h" |
21 #include "ui/aura/window_event_dispatcher.h" | 20 #include "ui/aura/window_event_dispatcher.h" |
22 #include "ui/display/display.h" | 21 #include "ui/display/display.h" |
23 | 22 |
24 namespace ash { | 23 namespace ash { |
25 namespace shell { | 24 namespace shell { |
26 | 25 |
27 class WindowWatcher::WorkspaceWindowWatcher : public aura::WindowObserver { | 26 class WindowWatcher::WorkspaceWindowWatcher : public aura::WindowObserver { |
28 public: | 27 public: |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 void WindowWatcher::OnDisplayRemoved(const display::Display& old_display) { | 143 void WindowWatcher::OnDisplayRemoved(const display::Display& old_display) { |
145 // All windows in the display has already been removed, so no need to | 144 // All windows in the display has already been removed, so no need to |
146 // remove observers. | 145 // remove observers. |
147 } | 146 } |
148 | 147 |
149 void WindowWatcher::OnDisplayMetricsChanged(const display::Display&, uint32_t) { | 148 void WindowWatcher::OnDisplayMetricsChanged(const display::Display&, uint32_t) { |
150 } | 149 } |
151 | 150 |
152 } // namespace shell | 151 } // namespace shell |
153 } // namespace ash | 152 } // namespace ash |
OLD | NEW |