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

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

Issue 1907363004: (Merge to M-51) Revise the shelf alignment locking mechanism. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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
« no previous file with comments | « ash/shelf/shelf_types.h ('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/shelf/shelf_item_types.h" 9 #include "ash/shelf/shelf_item_types.h"
10 #include "ash/shelf/shelf_types.h"
10 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
11 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
12 13
13 namespace aura { 14 namespace aura {
14 class Window; 15 class Window;
15 } 16 }
16 17
17 namespace ash { 18 namespace ash {
18 19
19 // A property key to store the id of the ShelfItem associated with the window. 20 // A property key to store the id of the ShelfItem associated with the window.
(...skipping 27 matching lines...) Expand all
47 // Clears ShelfItemDetails for |window|. 48 // Clears ShelfItemDetails for |window|.
48 // If |window| has a ShelfItem by SetShelfItemDetailsForWindow(), it will 49 // If |window| has a ShelfItem by SetShelfItemDetailsForWindow(), it will
49 // be removed. 50 // be removed.
50 ASH_EXPORT void ClearShelfItemDetailsForWindow(aura::Window* window); 51 ASH_EXPORT void ClearShelfItemDetailsForWindow(aura::Window* window);
51 52
52 // Returns ShelfItemDetails for |window| or NULL if it doesn't have. 53 // Returns ShelfItemDetails for |window| or NULL if it doesn't have.
53 // Returned ShelfItemDetails object is owned by the |window|. 54 // Returned ShelfItemDetails object is owned by the |window|.
54 ASH_EXPORT const ShelfItemDetails* GetShelfItemDetailsForWindow( 55 ASH_EXPORT const ShelfItemDetails* GetShelfItemDetailsForWindow(
55 aura::Window* window); 56 aura::Window* window);
56 57
58 // Returns true if the shelf |alignment| is horizontal.
59 ASH_EXPORT bool IsHorizontalAlignment(ShelfAlignment alignment);
60
57 } // namespace ash 61 } // namespace ash
58 62
59 #endif // ASH_SHELF_SHELF_UTIL_H_ 63 #endif // ASH_SHELF_SHELF_UTIL_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_types.h ('k') | ash/shelf/shelf_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698