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

Side by Side Diff: ash/wm_window.h

Issue 2905893002: chromeos: convert more ash/wm code to aura::Window (Closed)
Patch Set: moar cleanup Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WM_WINDOW_H_ 5 #ifndef ASH_WM_WINDOW_H_
6 #define ASH_WM_WINDOW_H_ 6 #define ASH_WM_WINDOW_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 void Deactivate(); 261 void Deactivate();
262 262
263 void SetFullscreen(bool fullscreen); 263 void SetFullscreen(bool fullscreen);
264 264
265 void Maximize(); 265 void Maximize();
266 void Minimize(); 266 void Minimize();
267 void Unminimize(); 267 void Unminimize();
268 268
269 std::vector<WmWindow*> GetChildren(); 269 std::vector<WmWindow*> GetChildren();
270 270
271 // Shows/hides the resize shadow. |component| is the component to show the
272 // shadow for (one of the constants in ui/base/hit_test.h).
273 void ShowResizeShadow(int component);
274 void HideResizeShadow();
275
276 // Installs a resize handler on the window that makes it easier to resize 271 // Installs a resize handler on the window that makes it easier to resize
277 // the window. See ResizeHandleWindowTargeter for the specifics. 272 // the window. See ResizeHandleWindowTargeter for the specifics.
278 void InstallResizeHandleWindowTargeter( 273 void InstallResizeHandleWindowTargeter(
279 ImmersiveFullscreenController* immersive_fullscreen_controller); 274 ImmersiveFullscreenController* immersive_fullscreen_controller);
280 275
281 // See description in SetBoundsInScreen(). 276 // See description in SetBoundsInScreen().
282 void SetBoundsInScreenBehaviorForChildren(BoundsInScreenBehavior behavior); 277 void SetBoundsInScreenBehaviorForChildren(BoundsInScreenBehavior behavior);
283 278
284 // See description of SnapToPixelBoundaryIfNecessary(). 279 // See description of SnapToPixelBoundaryIfNecessary().
285 void SetSnapsChildrenToPhysicalPixelBoundary(); 280 void SetSnapsChildrenToPhysicalPixelBoundary();
(...skipping 30 matching lines...) Expand all
316 311
317 aura::Window* window_; 312 aura::Window* window_;
318 313
319 bool added_transient_observer_ = false; 314 bool added_transient_observer_ = false;
320 base::ObserverList<WmTransientWindowObserver> transient_observers_; 315 base::ObserverList<WmTransientWindowObserver> transient_observers_;
321 316
322 // If true child windows should get a slightly larger hit region to make 317 // If true child windows should get a slightly larger hit region to make
323 // resizing easier. 318 // resizing easier.
324 bool children_use_extended_hit_region_ = false; 319 bool children_use_extended_hit_region_ = false;
325 320
326 // Default value for |use_empty_minimum_size_for_testing_|.
327 static bool default_use_empty_minimum_size_for_testing_;
328
329 // If true the minimum size is 0x0, default is minimum size comes from widget.
330 bool use_empty_minimum_size_for_testing_;
331
332 DISALLOW_COPY_AND_ASSIGN(WmWindow); 321 DISALLOW_COPY_AND_ASSIGN(WmWindow);
333 }; 322 };
334 323
335 } // namespace ash 324 } // namespace ash
336 325
337 #endif // ASH_WM_WINDOW_H_ 326 #endif // ASH_WM_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698