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

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

Issue 118553004: aura: Add an EasyResizeWindowTargeter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r243131 Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash.gyp ('k') | ash/shelf/shelf_widget.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_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 <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 // when the shelf is auto hidden and the shelf is on the boundary between 308 // when the shelf is auto hidden and the shelf is on the boundary between
309 // two displays. 309 // two displays.
310 gfx::Rect GetAutoHideShowShelfRegionInScreen() const; 310 gfx::Rect GetAutoHideShowShelfRegionInScreen() const;
311 311
312 // Returns the AutoHideState. This value is determined from the shelf and 312 // Returns the AutoHideState. This value is determined from the shelf and
313 // tray. 313 // tray.
314 ShelfAutoHideState CalculateAutoHideState( 314 ShelfAutoHideState CalculateAutoHideState(
315 ShelfVisibilityState visibility_state) const; 315 ShelfVisibilityState visibility_state) const;
316 316
317 // Updates the hit test bounds override for shelf and status area. 317 // Updates the hit test bounds override for shelf and status area.
318 // TODO(sad): Remove this (crbug.com/318879)
318 void UpdateHitTestBounds(); 319 void UpdateHitTestBounds();
319 320
320 // Returns true if |window| is a descendant of the shelf. 321 // Returns true if |window| is a descendant of the shelf.
321 bool IsShelfWindow(aura::Window* window); 322 bool IsShelfWindow(aura::Window* window);
322 323
323 int GetWorkAreaSize(const State& state, int size) const; 324 int GetWorkAreaSize(const State& state, int size) const;
324 325
325 // Return the bounds available in the parent, taking into account the bounds 326 // Return the bounds available in the parent, taking into account the bounds
326 // of the keyboard if necessary. 327 // of the keyboard if necessary.
327 gfx::Rect GetAvailableBounds() const; 328 gfx::Rect GetAvailableBounds() const;
328 329
329 // Overridden from keyboard::KeyboardControllerObserver: 330 // Overridden from keyboard::KeyboardControllerObserver:
330 virtual void OnKeyboardBoundsChanging( 331 virtual void OnKeyboardBoundsChanging(
331 const gfx::Rect& keyboard_bounds) OVERRIDE; 332 const gfx::Rect& keyboard_bounds) OVERRIDE;
332 333
333 // Overridden from DockedWindowLayoutManagerObserver: 334 // Overridden from DockedWindowLayoutManagerObserver:
334 virtual void OnDockBoundsChanging( 335 virtual void OnDockBoundsChanging(
335 const gfx::Rect& dock_bounds, 336 const gfx::Rect& dock_bounds,
336 DockedWindowLayoutManagerObserver::Reason reason) OVERRIDE; 337 DockedWindowLayoutManagerObserver::Reason reason) OVERRIDE;
337 338
338 // Generates insets for inward edge based on the current shelf alignment. 339 // Generates insets for inward edge based on the current shelf alignment.
340 // TODO(sad): Remove this (crbug.com/318879)
339 gfx::Insets GetInsetsForAlignment(int distance) const; 341 gfx::Insets GetInsetsForAlignment(int distance) const;
340 342
341 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from 343 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from
342 // our destructor. We avoid that as at the time we're deleted Shell is being 344 // our destructor. We avoid that as at the time we're deleted Shell is being
343 // deleted too. 345 // deleted too.
344 aura::Window* root_window_; 346 aura::Window* root_window_;
345 347
346 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling 348 // True when inside UpdateBoundsAndOpacity() method. Used to prevent calling
347 // UpdateBoundsAndOpacity() again from SetChildBounds(). 349 // UpdateBoundsAndOpacity() again from SetChildBounds().
348 bool updating_bounds_; 350 bool updating_bounds_;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 // The bounds of the dock. 408 // The bounds of the dock.
407 gfx::Rect dock_bounds_; 409 gfx::Rect dock_bounds_;
408 410
409 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 411 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
410 }; 412 };
411 413
412 } // namespace internal 414 } // namespace internal
413 } // namespace ash 415 } // namespace ash
414 416
415 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 417 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698