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

Side by Side Diff: ash/launcher/ash_launcher_delegate.cc

Issue 22429004: Refactor LauncherDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bugs 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 #include "ash/launcher/ash_launcher_delegate.h"
6
7 #include "ash/launcher/app_list_launcher_item_delegate.h"
8 #include "ash/launcher/launcher_item_delegate.h"
9
10 namespace ash {
11 namespace internal {
12
13 AshLauncherDelegate::AshLauncherDelegate() {
14 app_list_item_delegate_.reset(new AppListLauncherItemDelegate);
15 }
16
17 AshLauncherDelegate::~AshLauncherDelegate() {}
18
19 LauncherID AshLauncherDelegate::GetIDByWindow(aura::Window* window) {
20 return 0;
21 }
22
23 void AshLauncherDelegate::OnLauncherCreated(Launcher* launcher) {
24 // Do nothing.
25 }
26
27 void AshLauncherDelegate::OnLauncherDestroyed(Launcher* launcher) {
28 // Do nothing.
29 }
30
31 LauncherID AshLauncherDelegate::GetLauncherIDForAppID(
32 const std::string& app_id) {
33 NOTREACHED();
34 return 0;
35 }
36
37 void AshLauncherDelegate::PinAppWithID(const std::string& app_id) {
38 NOTREACHED();
39 // Do nothing.
40 }
41
42 bool AshLauncherDelegate::IsAppPinned(const std::string& app_id) {
43 NOTREACHED();
44 return false;
45 }
46
47 void AshLauncherDelegate::UnpinAppsWithID(const std::string& app_id) {
48 NOTREACHED();
49 // Do nothing.
50 }
51
52 LauncherItemDelegate* AshLauncherDelegate::GetLauncherItemDelegate(
53 const LauncherItem& item) {
54 if (item.type == TYPE_APP_LIST)
55 return app_list_item_delegate_.get();
56
57 NOTREACHED();
58 return NULL;
59 }
60
61 } // namespace internal
62 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698