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

Side by Side Diff: ash/launcher/ash_launcher_delegate.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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698