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

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

Issue 23606016: Refactor LauncherItemController and LauncherItemDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for LauncherTest and observing LauncherModel in DelegateManager Created 7 years, 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_LAUNCHER_LAUNCHER_UTIL_H_ 5 #ifndef ASH_LAUNCHER_LAUNCHER_UTIL_H_
6 #define ASH_LAUNCHER_LAUNCHER_UTIL_H_ 6 #define ASH_LAUNCHER_LAUNCHER_UTIL_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/launcher/launcher_types.h"
9 10
10 namespace ash { 11 namespace ash {
11 class LauncherModel; 12 class LauncherModel;
12 13
13 namespace launcher { 14 namespace launcher {
14 15
15 // Return the index of the browser item from a given |launcher_model|. 16 // Return the index of the browser item from a given |launcher_model|.
16 ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model); 17 ASH_EXPORT int GetBrowserItemIndex(const LauncherModel& launcher_model);
17 18
19 // Return the id of the browser item from a given |launcher_model|.
20 ASH_EXPORT ash::LauncherID GetBrowserItemID(
sky 2013/09/11 01:42:57 How about a single method that takes the type?
simonhong_ 2013/09/11 09:05:26 Done.
21 const LauncherModel& launcher_model);
22
23 // Return the id of the app list item from a given |launcher_model|.
24 ASH_EXPORT ash::LauncherID GetAppListItemID(
25 const LauncherModel& launcher_model);
26
18 } // namespace launcher 27 } // namespace launcher
19 } // namespace ash 28 } // namespace ash
20 29
21 #endif // ASH_LAUNCHER_LAUNCHER_UTIL_H_ 30 #endif // ASH_LAUNCHER_LAUNCHER_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698