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

Side by Side Diff: ash/shelf/shelf_layout_manager.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
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 #include <vector> 9 #include <vector>
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // On mus, widget bounds management is handled by the window manager. 62 // On mus, widget bounds management is handled by the window manager.
63 class ASH_EXPORT ShelfLayoutManager 63 class ASH_EXPORT ShelfLayoutManager
64 : public ash::ShellObserver, 64 : public ash::ShellObserver,
65 public aura::client::ActivationChangeObserver, 65 public aura::client::ActivationChangeObserver,
66 public DockedWindowLayoutManagerObserver, 66 public DockedWindowLayoutManagerObserver,
67 public keyboard::KeyboardControllerObserver, 67 public keyboard::KeyboardControllerObserver,
68 public LockStateObserver, 68 public LockStateObserver,
69 public SnapToPixelLayoutManager, 69 public SnapToPixelLayoutManager,
70 public SessionStateObserver { 70 public SessionStateObserver {
71 public: 71 public:
72
73 explicit ShelfLayoutManager(ShelfWidget* shelf_widget); 72 explicit ShelfLayoutManager(ShelfWidget* shelf_widget);
74 ~ShelfLayoutManager() override; 73 ~ShelfLayoutManager() override;
75 74
76 void set_workspace_controller(WorkspaceController* controller) { 75 void set_workspace_controller(WorkspaceController* controller) {
77 workspace_controller_ = controller; 76 workspace_controller_ = controller;
78 } 77 }
79 78
80 bool updating_bounds() const { return updating_bounds_; } 79 bool updating_bounds() const { return updating_bounds_; }
81 80
82 // Clears internal data for shutdown process. 81 // Clears internal data for shutdown process.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 return bottom; 181 return bottom;
183 case SHELF_ALIGNMENT_LEFT: 182 case SHELF_ALIGNMENT_LEFT:
184 return left; 183 return left;
185 case SHELF_ALIGNMENT_RIGHT: 184 case SHELF_ALIGNMENT_RIGHT:
186 return right; 185 return right;
187 } 186 }
188 NOTREACHED(); 187 NOTREACHED();
189 return right; 188 return right;
190 } 189 }
191 190
192 template<typename T> 191 template <typename T>
193 T PrimaryAxisValue(T horizontal, T vertical) const { 192 T PrimaryAxisValue(T horizontal, T vertical) const {
194 return IsHorizontalAlignment() ? horizontal : vertical; 193 return IsHorizontalAlignment() ? horizontal : vertical;
195 } 194 }
196 195
197 // Is the shelf's alignment horizontal? 196 // Is the shelf's alignment horizontal?
198 bool IsHorizontalAlignment() const; 197 bool IsHorizontalAlignment() const;
199 198
200 // Set the height of the ChromeVox panel, which takes away space from the 199 // Set the height of the ChromeVox panel, which takes away space from the
201 // available work area from the top of the screen. 200 // available work area from the top of the screen.
202 void SetChromeVoxPanelHeight(int height); 201 void SetChromeVoxPanelHeight(int height);
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 394
396 std::unique_ptr<RootWindowControllerObserverImpl> 395 std::unique_ptr<RootWindowControllerObserverImpl>
397 root_window_controller_observer_; 396 root_window_controller_observer_;
398 397
399 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 398 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
400 }; 399 };
401 400
402 } // namespace ash 401 } // namespace ash
403 402
404 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 403 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_button_pressed_metric_tracker_unittest.cc ('k') | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698