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

Side by Side Diff: ash/shelf/shelf_util.h

Issue 152223002: Renames LauncherID, LauncherItem and LauncherItems... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OWNERS Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « ash/shelf/shelf_unittest.cc ('k') | ash/shelf/shelf_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 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_SHELF_SHELF_UTIL_H_ 5 #ifndef ASH_SHELF_SHELF_UTIL_H_
6 #define ASH_SHELF_SHELF_UTIL_H_ 6 #define ASH_SHELF_SHELF_UTIL_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/launcher/launcher_types.h"
10 #include "ash/shelf/shelf_item_types.h" 9 #include "ash/shelf/shelf_item_types.h"
11 #include "ui/aura/window.h" 10 #include "ui/aura/window.h"
12 11
13 namespace aura { 12 namespace aura {
14 class Window; 13 class Window;
15 } 14 }
16 15
17 namespace ash { 16 namespace ash {
18 17
19 extern const aura::WindowProperty<ShelfItemDetails*>* const 18 extern const aura::WindowProperty<ShelfItemDetails*>* const
20 kShelfItemDetailsKey; 19 kShelfItemDetailsKey;
21 20
22 // Associates LauncherItem of |id| with specified |window|. 21 // Associates ShelfItem of |id| with specified |window|.
23 ASH_EXPORT void SetLauncherIDForWindow(LauncherID id, aura::Window* window); 22 ASH_EXPORT void SetShelfIDForWindow(ShelfID id, aura::Window* window);
24 23
25 // Returns the id of the LauncherItem associated with the specified |window|, 24 // Returns the id of the ShelfItem associated with the specified |window|,
26 // or 0 if there isn't one. 25 // or 0 if there isn't one.
27 // Note: Window of a tabbed browser will return the |LauncherID| of the 26 // Note: Window of a tabbed browser will return the |ShelfID| of the
28 // currently active tab. 27 // currently active tab.
29 ASH_EXPORT LauncherID GetLauncherIDForWindow(aura::Window* window); 28 ASH_EXPORT ShelfID GetShelfIDForWindow(aura::Window* window);
30 29
31 // Sets ShelfItemDetails for |window|. 30 // Sets ShelfItemDetails for |window|.
32 ASH_EXPORT void SetShelfItemDetailsForWindow(aura::Window* window, 31 ASH_EXPORT void SetShelfItemDetailsForWindow(aura::Window* window,
33 const ShelfItemDetails& details); 32 const ShelfItemDetails& details);
34 33
35 // Clears ShelfItemDetails for |window|. 34 // Clears ShelfItemDetails for |window|.
36 // If |window| has a LauncherItem by SetShelfItemDetailsForWindow(), it will 35 // If |window| has a ShelfItem by SetShelfItemDetailsForWindow(), it will
37 // be removed. 36 // be removed.
38 ASH_EXPORT void ClearShelfItemDetailsForWindow(aura::Window* window); 37 ASH_EXPORT void ClearShelfItemDetailsForWindow(aura::Window* window);
39 38
40 // Returns ShelfItemDetails for |window| or NULL if it doesn't have. 39 // Returns ShelfItemDetails for |window| or NULL if it doesn't have.
41 // Returned ShelfItemDetails object is owned by the |window|. 40 // Returned ShelfItemDetails object is owned by the |window|.
42 ASH_EXPORT const ShelfItemDetails* GetShelfItemDetailsForWindow( 41 ASH_EXPORT const ShelfItemDetails* GetShelfItemDetailsForWindow(
43 aura::Window* window); 42 aura::Window* window);
44 43
45 } // namespace ash 44 } // namespace ash
46 45
47 #endif // ASH_SHELF_SHELF_UTIL_H_ 46 #endif // ASH_SHELF_SHELF_UTIL_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_unittest.cc ('k') | ash/shelf/shelf_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698