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