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

Side by Side Diff: ash/launcher/launcher_delegate_proxy.h

Issue 22429004: Refactor LauncherDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add some comments Created 7 years, 4 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698