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/shell/window_watcher_shelf_item_delegate.h" | 5 #include "ash/shell/window_watcher_shelf_item_delegate.h" |
6 | 6 |
7 #include "ash/shell/window_watcher.h" | 7 #include "ash/shell/window_watcher.h" |
8 #include "ash/wm/window_util.h" | 8 #include "ash/wm/window_util.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 namespace shell { | 12 namespace shell { |
13 | 13 |
14 WindowWatcherShelfItemDelegate::WindowWatcherShelfItemDelegate( | 14 WindowWatcherShelfItemDelegate::WindowWatcherShelfItemDelegate( |
15 LauncherID id, | 15 ShelfID id, |
16 WindowWatcher* watcher) | 16 WindowWatcher* watcher) |
17 : id_(id), watcher_(watcher) { | 17 : id_(id), watcher_(watcher) { |
18 DCHECK_GT(id_, 0); | 18 DCHECK_GT(id_, 0); |
19 DCHECK(watcher_); | 19 DCHECK(watcher_); |
20 } | 20 } |
21 | 21 |
22 WindowWatcherShelfItemDelegate::~WindowWatcherShelfItemDelegate() { | 22 WindowWatcherShelfItemDelegate::~WindowWatcherShelfItemDelegate() { |
23 } | 23 } |
24 | 24 |
25 bool WindowWatcherShelfItemDelegate::ItemSelected(const ui::Event& event) { | 25 bool WindowWatcherShelfItemDelegate::ItemSelected(const ui::Event& event) { |
(...skipping 25 matching lines...) Expand all Loading... |
51 | 51 |
52 bool WindowWatcherShelfItemDelegate::ShouldShowTooltip() { | 52 bool WindowWatcherShelfItemDelegate::ShouldShowTooltip() { |
53 return true; | 53 return true; |
54 } | 54 } |
55 | 55 |
56 void WindowWatcherShelfItemDelegate::Close() { | 56 void WindowWatcherShelfItemDelegate::Close() { |
57 } | 57 } |
58 | 58 |
59 } // namespace shell | 59 } // namespace shell |
60 } // namespace ash | 60 } // namespace ash |
OLD | NEW |