| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_LAUNCHER_ASH_LAUNCHER_DELEGATE_H_ |
| 6 #define ASH_LAUNCHER_ASH_LAUNCHER_DELEGATE_H_ |
| 7 |
| 8 #include "ash/launcher/launcher_delegate.h" |
| 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" |
| 11 |
| 12 namespace ash { |
| 13 class Launcher; |
| 14 class LauncherItemDelegate; |
| 15 |
| 16 namespace internal { |
| 17 |
| 18 // LauncherDelegate in Ash. |
| 19 class AshLauncherDelegate : public LauncherDelegate { |
| 20 public: |
| 21 AshLauncherDelegate(); |
| 22 virtual ~AshLauncherDelegate(); |
| 23 |
| 24 // ash::LauncherDelegate overrides; |
| 25 virtual LauncherID GetIDByWindow(aura::Window* window) OVERRIDE; |
| 26 virtual void OnLauncherCreated(Launcher* launcher) OVERRIDE; |
| 27 virtual void OnLauncherDestroyed(Launcher* launcher) OVERRIDE; |
| 28 virtual LauncherID GetLauncherIDForAppID(const std::string& app_id) OVERRIDE; |
| 29 virtual void PinAppWithID(const std::string& app_id) OVERRIDE; |
| 30 virtual bool IsAppPinned(const std::string& app_id) OVERRIDE; |
| 31 virtual void UnpinAppsWithID(const std::string& app_id) OVERRIDE; |
| 32 virtual LauncherItemDelegate* GetLauncherItemDelegate( |
| 33 const LauncherItem& item) OVERRIDE; |
| 34 |
| 35 private: |
| 36 scoped_ptr<LauncherItemDelegate> app_list_item_delegate_; |
| 37 |
| 38 DISALLOW_COPY_AND_ASSIGN(AshLauncherDelegate); |
| 39 }; |
| 40 |
| 41 } // namespace internal |
| 42 } // namespace ash |
| 43 |
| 44 #endif // ASH_LAUNCHER_ASH_LAUNCHER_DELEGATE_H_ |
| OLD | NEW |