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

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

Issue 14740012: Enable shelf gestures in immersive mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Responded to pkotwicz's comments Created 7 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') | ash/shelf/shelf_layout_manager.cc » ('J')
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 "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/launcher/launcher.h" 9 #include "ash/launcher/launcher.h"
10 #include "ash/shelf/background_animator.h" 10 #include "ash/shelf/background_animator.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 // of the keyboard if necessary. 273 // of the keyboard if necessary.
274 gfx::Rect GetAvailableBounds() const; 274 gfx::Rect GetAvailableBounds() const;
275 275
276 // Overridden from keyboard::KeyboardControllerObserver: 276 // Overridden from keyboard::KeyboardControllerObserver:
277 virtual void OnKeyboardBoundsChanging( 277 virtual void OnKeyboardBoundsChanging(
278 const gfx::Rect& keyboard_bounds) OVERRIDE; 278 const gfx::Rect& keyboard_bounds) OVERRIDE;
279 279
280 // Generates insets for inward edge based on the current shelf alignment. 280 // Generates insets for inward edge based on the current shelf alignment.
281 gfx::Insets GetInsetsForAlignment(int distance) const; 281 gfx::Insets GetInsetsForAlignment(int distance) const;
282 282
283 // Tests if currently in immersive mode.
284 bool IsInImmersiveMode() const;
James Cook 2013/05/22 12:04:22 ash/ has no knowledge of immersive mode. That's a
rharrison 2013/05/22 20:20:02 Done.
285
283 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from 286 // The RootWindow is cached so that we don't invoke Shell::GetInstance() from
284 // our destructor. We avoid that as at the time we're deleted Shell is being 287 // our destructor. We avoid that as at the time we're deleted Shell is being
285 // deleted too. 288 // deleted too.
286 aura::RootWindow* root_window_; 289 aura::RootWindow* root_window_;
287 290
288 // True when inside LayoutShelf method. Used to prevent calling LayoutShelf 291 // True when inside LayoutShelf method. Used to prevent calling LayoutShelf
289 // again from SetChildBounds(). 292 // again from SetChildBounds().
290 bool in_layout_; 293 bool in_layout_;
291 294
292 // See description above setter. 295 // See description above setter.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // The bounds of the keyboard. 339 // The bounds of the keyboard.
337 gfx::Rect keyboard_bounds_; 340 gfx::Rect keyboard_bounds_;
338 341
339 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 342 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
340 }; 343 };
341 344
342 } // namespace internal 345 } // namespace internal
343 } // namespace ash 346 } // namespace ash
344 347
345 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 348 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | ash/shelf/shelf_layout_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698