| OLD | NEW |
| 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/shelf/shelf_item_types.h" | 9 #include "ash/shelf/shelf_item_types.h" |
| 10 #include "ash/shelf/shelf_types.h" | 10 #include "ash/shelf/shelf_types.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Clears ShelfItemDetails for |window|. | 48 // Clears ShelfItemDetails for |window|. |
| 49 // If |window| has a ShelfItem by SetShelfItemDetailsForWindow(), it will | 49 // If |window| has a ShelfItem by SetShelfItemDetailsForWindow(), it will |
| 50 // be removed. | 50 // be removed. |
| 51 ASH_EXPORT void ClearShelfItemDetailsForWindow(aura::Window* window); | 51 ASH_EXPORT void ClearShelfItemDetailsForWindow(aura::Window* window); |
| 52 | 52 |
| 53 // Returns ShelfItemDetails for |window| or NULL if it doesn't have. | 53 // Returns ShelfItemDetails for |window| or NULL if it doesn't have. |
| 54 // Returned ShelfItemDetails object is owned by the |window|. | 54 // Returned ShelfItemDetails object is owned by the |window|. |
| 55 ASH_EXPORT const ShelfItemDetails* GetShelfItemDetailsForWindow( | 55 ASH_EXPORT const ShelfItemDetails* GetShelfItemDetailsForWindow( |
| 56 aura::Window* window); | 56 aura::Window* window); |
| 57 | 57 |
| 58 // Returns true if the shelf |alignment| is horizontal. | |
| 59 ASH_EXPORT bool IsHorizontalAlignment(wm::ShelfAlignment alignment); | |
| 60 | |
| 61 } // namespace ash | 58 } // namespace ash |
| 62 | 59 |
| 63 #endif // ASH_SHELF_SHELF_UTIL_H_ | 60 #endif // ASH_SHELF_SHELF_UTIL_H_ |
| OLD | NEW |