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/shelf/shelf_window_watcher_item_delegate.h" | 5 #include "ash/shelf/shelf_window_watcher_item_delegate.h" |
6 | 6 |
7 #include "ash/shelf/shelf_model.h" | 7 #include "ash/shelf/shelf_model.h" |
8 #include "ash/shelf/shelf_util.h" | 8 #include "ash/shelf/shelf_util.h" |
9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
10 #include "ash/shell_delegate.h" | 10 #include "ash/shell_delegate.h" |
11 #include "ash/wm/window_state.h" | 11 #include "ash/wm/window_state.h" |
12 #include "ui/aura/window.h" | 12 #include "ui/aura/window.h" |
13 #include "ui/views/widget/widget.h" | 13 #include "ui/views/widget/widget.h" |
14 #include "ui/wm/core/window_animations.h" | 14 #include "ui/wm/core/window_animations.h" |
15 | 15 |
16 namespace ash { | 16 namespace ash { |
17 namespace internal { | |
18 | 17 |
19 ShelfWindowWatcherItemDelegate::ShelfWindowWatcherItemDelegate( | 18 ShelfWindowWatcherItemDelegate::ShelfWindowWatcherItemDelegate( |
20 aura::Window* window, ShelfModel* model) | 19 aura::Window* window, ShelfModel* model) |
21 : window_(window), | 20 : window_(window), |
22 model_(model) { | 21 model_(model) { |
23 } | 22 } |
24 | 23 |
25 ShelfWindowWatcherItemDelegate::~ShelfWindowWatcherItemDelegate() { | 24 ShelfWindowWatcherItemDelegate::~ShelfWindowWatcherItemDelegate() { |
26 } | 25 } |
27 | 26 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 } | 61 } |
63 | 62 |
64 bool ShelfWindowWatcherItemDelegate::IsDraggable() { | 63 bool ShelfWindowWatcherItemDelegate::IsDraggable() { |
65 return true; | 64 return true; |
66 } | 65 } |
67 | 66 |
68 bool ShelfWindowWatcherItemDelegate::ShouldShowTooltip() { | 67 bool ShelfWindowWatcherItemDelegate::ShouldShowTooltip() { |
69 return true; | 68 return true; |
70 } | 69 } |
71 | 70 |
72 } // namespace internal | |
73 } // namespace ash | 71 } // namespace ash |
OLD | NEW |