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

Side by Side Diff: ash/shelf/shelf_window_watcher_item_delegate.cc

Issue 2734733002: Revert "chromeos: Move files in //ash/common to //ash, part 3" (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « ash/shelf/shelf_window_watcher.cc ('k') | ash/shelf/shelf_window_watcher_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/wm_shell.h"
8 #include "ash/common/wm_window.h"
7 #include "ash/public/cpp/window_properties.h" 9 #include "ash/public/cpp/window_properties.h"
8 #include "ash/shelf/shelf_controller.h" 10 #include "ash/shelf/shelf_controller.h"
9 #include "ash/shelf/shelf_model.h" 11 #include "ash/shelf/shelf_model.h"
10 #include "ash/wm/window_state.h" 12 #include "ash/wm/window_state.h"
11 #include "ash/wm/window_util.h" 13 #include "ash/wm/window_util.h"
12 #include "ash/wm_shell.h"
13 #include "ash/wm_window.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();
23 ShelfItems::const_iterator item = model->ItemByID(id); 23 ShelfItems::const_iterator item = model->ItemByID(id);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « ash/shelf/shelf_window_watcher.cc ('k') | ash/shelf/shelf_window_watcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698