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

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

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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_util.cc ('k') | ash/shelf/shelf_view.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 (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_SHELF_SHELF_VIEW_H_ 5 #ifndef ASH_SHELF_SHELF_VIEW_H_
6 #define ASH_SHELF_SHELF_VIEW_H_ 6 #define ASH_SHELF_SHELF_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 friend class ash::test::ShelfViewTestAPI; 165 friend class ash::test::ShelfViewTestAPI;
166 166
167 class FadeOutAnimationDelegate; 167 class FadeOutAnimationDelegate;
168 class StartFadeAnimationDelegate; 168 class StartFadeAnimationDelegate;
169 169
170 struct IdealBounds { 170 struct IdealBounds {
171 gfx::Rect overflow_bounds; 171 gfx::Rect overflow_bounds;
172 }; 172 };
173 173
174 enum RemovableState { 174 enum RemovableState {
175 REMOVABLE, // Item can be removed when dragged away. 175 REMOVABLE, // Item can be removed when dragged away.
176 DRAGGABLE, // Item can be dragged, but will snap always back to origin. 176 DRAGGABLE, // Item can be dragged, but will snap always back to origin.
177 NOT_REMOVABLE, // Item is fixed and can never be removed. 177 NOT_REMOVABLE, // Item is fixed and can never be removed.
178 }; 178 };
179 179
180 // Minimum distance before drag starts. 180 // Minimum distance before drag starts.
181 static const int kMinimumDragDistance; 181 static const int kMinimumDragDistance;
182 182
183 // Returns true when this ShelfView is used for Overflow Bubble. 183 // Returns true when this ShelfView is used for Overflow Bubble.
184 // In this mode, it does not show app list, panel and overflow button. 184 // In this mode, it does not show app list, panel and overflow button.
185 // Note: 185 // Note:
186 // * When Shelf can contain only one item (overflow button) due to very 186 // * When Shelf can contain only one item (overflow button) due to very
187 // small resolution screen, overflow bubble can show app list and panel 187 // small resolution screen, overflow bubble can show app list and panel
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 461
462 // Tracks UMA metrics based on shelf button press actions. 462 // Tracks UMA metrics based on shelf button press actions.
463 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_; 463 ShelfButtonPressedMetricTracker shelf_button_pressed_metric_tracker_;
464 464
465 DISALLOW_COPY_AND_ASSIGN(ShelfView); 465 DISALLOW_COPY_AND_ASSIGN(ShelfView);
466 }; 466 };
467 467
468 } // namespace ash 468 } // namespace ash
469 469
470 #endif // ASH_SHELF_SHELF_VIEW_H_ 470 #endif // ASH_SHELF_SHELF_VIEW_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_util.cc ('k') | ash/shelf/shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698