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

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: Merge ToT Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 (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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // Returns true if the shelf should be forced to be visible. 324 // Returns true if the shelf should be forced to be visible.
325 bool IsShelfForcedToBeVisible() const; 325 bool IsShelfForcedToBeVisible() const;
326 326
327 // Return the bounds available in the parent, taking into account the bounds
328 // of the keyboard if necessary.
329 gfx::Rect GetAvailableBounds() const;
330
331 // Overridden from keyboard::KeyboardControllerObserver: 327 // Overridden from keyboard::KeyboardControllerObserver:
332 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE; 328 virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) OVERRIDE;
333 329
334 // Overridden from DockedWindowLayoutManagerObserver: 330 // Overridden from DockedWindowLayoutManagerObserver:
335 virtual void OnDockBoundsChanging( 331 virtual void OnDockBoundsChanging(
336 const gfx::Rect& dock_bounds, 332 const gfx::Rect& dock_bounds,
337 DockedWindowLayoutManagerObserver::Reason reason) OVERRIDE; 333 DockedWindowLayoutManagerObserver::Reason reason) OVERRIDE;
338 334
339 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from 335 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from
340 // our destructor. We avoid that as at the time we're deleted Shell is being 336 // 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
410 406
411 // The show hide animation duration override or 0 for default. 407 // The show hide animation duration override or 0 for default.
412 int duration_override_in_ms_; 408 int duration_override_in_ms_;
413 409
414 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 410 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
415 }; 411 };
416 412
417 } // namespace ash 413 } // namespace ash
418 414
419 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 415 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698