| 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/shelf_delegate_impl.h" | 5 #include "ash/shell/shelf_delegate_impl.h" |
| 6 | 6 |
| 7 #include "ash/shell.h" | 7 #include "ash/shell.h" |
| 8 #include "ash/shell/toplevel_window.h" | 8 #include "ash/shell/toplevel_window.h" |
| 9 #include "ash/shell/window_watcher.h" | 9 #include "ash/shell/window_watcher.h" |
| 10 #include "ash/wm/window_util.h" | 10 #include "ash/wm/window_util.h" |
| 11 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 12 #include "grit/ash_resources.h" | 12 #include "grit/ash_resources.h" |
| 13 | 13 |
| 14 namespace ash { | 14 namespace ash { |
| 15 namespace shell { | 15 namespace shell { |
| 16 | 16 |
| 17 ShelfDelegateImpl::ShelfDelegateImpl(WindowWatcher* watcher) | 17 ShelfDelegateImpl::ShelfDelegateImpl(WindowWatcher* watcher) |
| 18 : watcher_(watcher) { | 18 : watcher_(watcher) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 ShelfDelegateImpl::~ShelfDelegateImpl() { | 21 ShelfDelegateImpl::~ShelfDelegateImpl() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 void ShelfDelegateImpl::OnLauncherCreated(Launcher* launcher) { | 24 void ShelfDelegateImpl::OnShelfCreated(Shelf* shelf) { |
| 25 } | 25 } |
| 26 | 26 |
| 27 void ShelfDelegateImpl::OnLauncherDestroyed(Launcher* launcher) { | 27 void ShelfDelegateImpl::OnShelfDestroyed(Shelf* shelf) { |
| 28 } | 28 } |
| 29 | 29 |
| 30 LauncherID ShelfDelegateImpl::GetLauncherIDForAppID(const std::string& app_id) { | 30 LauncherID ShelfDelegateImpl::GetLauncherIDForAppID(const std::string& app_id) { |
| 31 return 0; | 31 return 0; |
| 32 } | 32 } |
| 33 | 33 |
| 34 const std::string& ShelfDelegateImpl::GetAppIDForLauncherID(LauncherID id) { | 34 const std::string& ShelfDelegateImpl::GetAppIDForLauncherID(LauncherID id) { |
| 35 return base::EmptyString(); | 35 return base::EmptyString(); |
| 36 } | 36 } |
| 37 | 37 |
| 38 void ShelfDelegateImpl::PinAppWithID(const std::string& app_id) { | 38 void ShelfDelegateImpl::PinAppWithID(const std::string& app_id) { |
| 39 } | 39 } |
| 40 | 40 |
| 41 bool ShelfDelegateImpl::IsAppPinned(const std::string& app_id) { | 41 bool ShelfDelegateImpl::IsAppPinned(const std::string& app_id) { |
| 42 return false; | 42 return false; |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool ShelfDelegateImpl::CanPin() const { | 45 bool ShelfDelegateImpl::CanPin() const { |
| 46 return false; | 46 return false; |
| 47 } | 47 } |
| 48 | 48 |
| 49 void ShelfDelegateImpl::UnpinAppWithID(const std::string& app_id) { | 49 void ShelfDelegateImpl::UnpinAppWithID(const std::string& app_id) { |
| 50 } | 50 } |
| 51 | 51 |
| 52 } // namespace shell | 52 } // namespace shell |
| 53 } // namespace ash | 53 } // namespace ash |
| OLD | NEW |