OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/shelf/shelf_window_watcher_item_delegate.h" | 5 #include "ash/shelf/shelf_window_watcher_item_delegate.h" |
6 | 6 |
7 #include "ash/common/shelf/shelf_controller.h" | |
8 #include "ash/common/shelf/shelf_model.h" | |
9 #include "ash/common/wm/window_state.h" | |
10 #include "ash/common/wm_shell.h" | 7 #include "ash/common/wm_shell.h" |
11 #include "ash/common/wm_window.h" | 8 #include "ash/common/wm_window.h" |
12 #include "ash/public/cpp/window_properties.h" | 9 #include "ash/public/cpp/window_properties.h" |
| 10 #include "ash/shelf/shelf_controller.h" |
| 11 #include "ash/shelf/shelf_model.h" |
| 12 #include "ash/wm/window_state.h" |
13 #include "ash/wm/window_util.h" | 13 #include "ash/wm/window_util.h" |
14 #include "ui/aura/window.h" | 14 #include "ui/aura/window.h" |
15 #include "ui/events/event_constants.h" | 15 #include "ui/events/event_constants.h" |
16 | 16 |
17 namespace ash { | 17 namespace ash { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 ShelfItemType GetShelfItemType(ShelfID id) { | 21 ShelfItemType GetShelfItemType(ShelfID id) { |
22 ShelfModel* model = WmShell::Get()->shelf_controller()->model(); | 22 ShelfModel* model = WmShell::Get()->shelf_controller()->model(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 int event_flags) { | 70 int event_flags) { |
71 // This delegate does not support showing an application menu. | 71 // This delegate does not support showing an application menu. |
72 NOTIMPLEMENTED(); | 72 NOTIMPLEMENTED(); |
73 } | 73 } |
74 | 74 |
75 void ShelfWindowWatcherItemDelegate::Close() { | 75 void ShelfWindowWatcherItemDelegate::Close() { |
76 window_->CloseWidget(); | 76 window_->CloseWidget(); |
77 } | 77 } |
78 | 78 |
79 } // namespace ash | 79 } // namespace ash |
OLD | NEW |