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

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

Issue 19291004: Observes work area change and auto-hide for notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 // user can drag the shelf out. 67 // user can drag the shelf out.
68 static const int kWorkspaceAreaAutoHideInset; 68 static const int kWorkspaceAreaAutoHideInset;
69 69
70 // Size of the shelf when auto-hidden. 70 // Size of the shelf when auto-hidden.
71 static const int kAutoHideSize; 71 static const int kAutoHideSize;
72 72
73 // The size of the shelf when shown (currently only used in alternate 73 // The size of the shelf when shown (currently only used in alternate
74 // settings see ash::switches::UseAlternateShelfLayout). 74 // settings see ash::switches::UseAlternateShelfLayout).
75 static const int kShelfSize; 75 static const int kShelfSize;
76 76
77 static int GetPreferredShelfSize();
78
77 explicit ShelfLayoutManager(ShelfWidget* shelf); 79 explicit ShelfLayoutManager(ShelfWidget* shelf);
78 virtual ~ShelfLayoutManager(); 80 virtual ~ShelfLayoutManager();
79 81
80 // Sets the ShelfAutoHideBehavior. See enum description for details. 82 // Sets the ShelfAutoHideBehavior. See enum description for details.
81 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior); 83 void SetAutoHideBehavior(ShelfAutoHideBehavior behavior);
82 ShelfAutoHideBehavior auto_hide_behavior() const { 84 ShelfAutoHideBehavior auto_hide_behavior() const {
83 return auto_hide_behavior_; 85 return auto_hide_behavior_;
84 } 86 }
85 87
86 // Sets the alignment. Returns true if the alignment is changed. Otherwise, 88 // Sets the alignment. Returns true if the alignment is changed. Otherwise,
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 // The bounds of the keyboard. 356 // The bounds of the keyboard.
355 gfx::Rect keyboard_bounds_; 357 gfx::Rect keyboard_bounds_;
356 358
357 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); 359 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager);
358 }; 360 };
359 361
360 } // namespace internal 362 } // namespace internal
361 } // namespace ash 363 } // namespace ash
362 364
363 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ 365 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/shelf/shelf_layout_manager.cc » ('j') | ash/system/web_notification/web_notification_tray.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698