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

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

Issue 195793004: Implement overscroll support for the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer feedback. Created 6 years, 8 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
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // Returns the AutoHideState. This value is determined from the shelf and 314 // Returns the AutoHideState. This value is determined from the shelf and
315 // tray. 315 // tray.
316 ShelfAutoHideState CalculateAutoHideState( 316 ShelfAutoHideState CalculateAutoHideState(
317 ShelfVisibilityState visibility_state) const; 317 ShelfVisibilityState visibility_state) const;
318 318
319 // Returns true if |window| is a descendant of the shelf. 319 // Returns true if |window| is a descendant of the shelf.
320 bool IsShelfWindow(aura::Window* window); 320 bool IsShelfWindow(aura::Window* window);
321 321
322 int GetWorkAreaSize(const State& state, int size) const; 322 int GetWorkAreaSize(const State& state, int size) const;
323 323
324 // Return the bounds available in the parent, taking into account the bounds
325 // of the keyboard if necessary.
326 gfx::Rect GetAvailableBounds() const;
327
328 // Overridden from keyboard::KeyboardControllerObserver: 324 // Overridden from keyboard::KeyboardControllerObserver:
329 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; 325 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE;
330 326
331 // Overridden from DockedWindowLayoutManagerObserver: 327 // Overridden from DockedWindowLayoutManagerObserver:
332 virtual void OnDockBoundsChanging( 328 virtual void OnDockBoundsChanging(
333 const gfx::Rect& dock_bounds, 329 const gfx::Rect& dock_bounds,
334 DockedWindowLayoutManagerObserver::Reason reason) OVERRIDE; 330 DockedWindowLayoutManagerObserver::Reason reason) OVERRIDE;
335 331
336 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from 332 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from
337 // our destructor. We avoid that as at the time we're deleted Shell is being 333 // our destructor. We avoid that as at the time we're deleted Shell is being
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 403
408 // The show hide animation duration override or 0 for default. 404 // The show hide animation duration override or 0 for default.
409 int duration_override_in_ms_; 405 int duration_override_in_ms_;
410 406
411 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 407 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
412 }; 408 };
413 409
414 } // namespace ash 410 } // namespace ash
415 411
416 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 412 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | content/browser/renderer_host/render_widget_host_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698