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

Side by Side Diff: ash/shell/shelf_delegate_impl.cc

Issue 1851883002: Cleanup shelf initialization and observation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check for shelf before setting prefs in ChromeLauncherController. Created 4 years, 8 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
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/shell/shelf_delegate_impl.h" 5 #include "ash/shell/shelf_delegate_impl.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 8
9 namespace ash { 9 namespace ash {
10 namespace shell { 10 namespace shell {
11 11
12 ShelfDelegateImpl::ShelfDelegateImpl() {} 12 ShelfDelegateImpl::ShelfDelegateImpl() {}
13 13
14 ShelfDelegateImpl::~ShelfDelegateImpl() { 14 ShelfDelegateImpl::~ShelfDelegateImpl() {}
15 }
16 15
17 void ShelfDelegateImpl::OnShelfCreated(Shelf* shelf) { 16 void ShelfDelegateImpl::OnShelfCreated(Shelf* shelf) {}
18 }
19 17
20 void ShelfDelegateImpl::OnShelfDestroyed(Shelf* shelf) { 18 void ShelfDelegateImpl::OnShelfDestroyed(Shelf* shelf) {}
21 } 19
20 void ShelfDelegateImpl::OnShelfAlignmentChanged(Shelf* shelf) {}
21
22 void ShelfDelegateImpl::OnShelfAutoHideBehaviorChanged(Shelf* shelf) {}
22 23
23 ShelfID ShelfDelegateImpl::GetShelfIDForAppID(const std::string& app_id) { 24 ShelfID ShelfDelegateImpl::GetShelfIDForAppID(const std::string& app_id) {
24 return 0; 25 return 0;
25 } 26 }
26 27
27 bool ShelfDelegateImpl::HasShelfIDToAppIDMapping(ShelfID id) const { 28 bool ShelfDelegateImpl::HasShelfIDToAppIDMapping(ShelfID id) const {
28 return false; 29 return false;
29 } 30 }
30 31
31 const std::string& ShelfDelegateImpl::GetAppIDForShelfID(ShelfID id) { 32 const std::string& ShelfDelegateImpl::GetAppIDForShelfID(ShelfID id) {
32 return base::EmptyString(); 33 return base::EmptyString();
33 } 34 }
34 35
35 void ShelfDelegateImpl::PinAppWithID(const std::string& app_id) { 36 void ShelfDelegateImpl::PinAppWithID(const std::string& app_id) {}
36 }
37 37
38 bool ShelfDelegateImpl::IsAppPinned(const std::string& app_id) { 38 bool ShelfDelegateImpl::IsAppPinned(const std::string& app_id) {
39 return false; 39 return false;
40 } 40 }
41 41
42 void ShelfDelegateImpl::UnpinAppWithID(const std::string& app_id) { 42 void ShelfDelegateImpl::UnpinAppWithID(const std::string& app_id) {}
43 }
44 43
45 } // namespace shell 44 } // namespace shell
46 } // namespace ash 45 } // namespace ash
OLDNEW
« ash/shelf/shelf.cc ('K') | « ash/shell/shelf_delegate_impl.h ('k') | ash/shell_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698