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

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

Issue 2191153002: Revert of Replaced BackgroundAnimator with ShelfBackgroundAnimator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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.cc ('k') | ash/shelf/shelf_layout_manager.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_LAYOUT_MANAGER_H_ 5 #ifndef ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 6 #define ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 176 }
177 177
178 template <typename T> 178 template <typename T>
179 T PrimaryAxisValue(T horizontal, T vertical) const { 179 T PrimaryAxisValue(T horizontal, T vertical) const {
180 return IsHorizontalAlignment() ? horizontal : vertical; 180 return IsHorizontalAlignment() ? horizontal : vertical;
181 } 181 }
182 182
183 // Is the shelf's alignment horizontal? 183 // Is the shelf's alignment horizontal?
184 bool IsHorizontalAlignment() const; 184 bool IsHorizontalAlignment() const;
185 185
186 // Returns how the shelf background is painted.
187 ShelfBackgroundType GetShelfBackgroundType() const;
188
189 // Set the height of the ChromeVox panel, which takes away space from the 186 // Set the height of the ChromeVox panel, which takes away space from the
190 // available work area from the top of the screen. 187 // available work area from the top of the screen.
191 void SetChromeVoxPanelHeight(int height); 188 void SetChromeVoxPanelHeight(int height);
192 189
193 private: 190 private:
194 class AutoHideEventFilter; 191 class AutoHideEventFilter;
195 class RootWindowControllerObserverImpl; 192 class RootWindowControllerObserverImpl;
196 class UpdateShelfObserver; 193 class UpdateShelfObserver;
197 friend class PanelLayoutManagerTest; 194 friend class PanelLayoutManagerTest;
198 friend class ShelfLayoutManagerTest; 195 friend class ShelfLayoutManagerTest;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // Calculates the target bounds assuming visibility of |visible|. 250 // Calculates the target bounds assuming visibility of |visible|.
254 void CalculateTargetBounds(const State& state, TargetBounds* target_bounds); 251 void CalculateTargetBounds(const State& state, TargetBounds* target_bounds);
255 252
256 // Updates the target bounds if a gesture-drag is in progress. This is only 253 // Updates the target bounds if a gesture-drag is in progress. This is only
257 // used by |CalculateTargetBounds()|. 254 // used by |CalculateTargetBounds()|.
258 void UpdateTargetBoundsForGesture(TargetBounds* target_bounds) const; 255 void UpdateTargetBoundsForGesture(TargetBounds* target_bounds) const;
259 256
260 // Updates the background of the shelf. 257 // Updates the background of the shelf.
261 void UpdateShelfBackground(BackgroundAnimatorChangeType type); 258 void UpdateShelfBackground(BackgroundAnimatorChangeType type);
262 259
260 // Returns how the shelf background is painted.
261 ShelfBackgroundType GetShelfBackgroundType() const;
262
263 // Updates the auto hide state immediately. 263 // Updates the auto hide state immediately.
264 void UpdateAutoHideStateNow(); 264 void UpdateAutoHideStateNow();
265 265
266 // Stops the auto hide timer and clears 266 // Stops the auto hide timer and clears
267 // |mouse_over_shelf_when_auto_hide_timer_started_|. 267 // |mouse_over_shelf_when_auto_hide_timer_started_|.
268 void StopAutoHideTimer(); 268 void StopAutoHideTimer();
269 269
270 // Returns the bounds of an additional region which can trigger showing the 270 // Returns the bounds of an additional region which can trigger showing the
271 // shelf. This region exists to make it easier to trigger showing the shelf 271 // shelf. This region exists to make it easier to trigger showing the shelf
272 // when the shelf is auto hidden and the shelf is on the boundary between 272 // when the shelf is auto hidden and the shelf is on the boundary between
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 std::unique_ptr<RootWindowControllerObserverImpl> 374 std::unique_ptr<RootWindowControllerObserverImpl>
375 root_window_controller_observer_; 375 root_window_controller_observer_;
376 376
377 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 377 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
378 }; 378 };
379 379
380 } // namespace ash 380 } // namespace ash
381 381
382 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 382 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698