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

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

Issue 22638013: Prevent a user from hiding the shelf via a gesture when there are no visible windows part 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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/shelf/shelf_layout_manager_unittest.cc ('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_WIDGET_H_ 5 #ifndef ASH_SHELF_SHELF_WIDGET_H_
6 #define ASH_SHELF_SHELF_WIDGET_H_ 6 #define ASH_SHELF_SHELF_WIDGET_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shelf/background_animator.h" 9 #include "ash/shelf/background_animator.h"
10 #include "ash/shelf/shelf_types.h" 10 #include "ash/shelf/shelf_types.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Called by the activation delegate, before the launcher is activated 73 // Called by the activation delegate, before the launcher is activated
74 // when no other windows are visible. 74 // when no other windows are visible.
75 void WillActivateAsFallback() { activating_as_fallback_ = true; } 75 void WillActivateAsFallback() { activating_as_fallback_ = true; }
76 76
77 aura::Window* window_container() { return window_container_; } 77 aura::Window* window_container() { return window_container_; }
78 78
79 // TODO(harrym): Remove when Status Area Widget is a child view. 79 // TODO(harrym): Remove when Status Area Widget is a child view.
80 void ShutdownStatusAreaWidget(); 80 void ShutdownStatusAreaWidget();
81 81
82 // Set the bounds of the widget and the dim shelf overlay.
83 void SetWidgetBounds(const gfx::Rect& rect);
84
85 // Force the shelf to be presented in an undimmed state. 82 // Force the shelf to be presented in an undimmed state.
86 void ForceUndimming(bool force); 83 void ForceUndimming(bool force);
87 84
88 // Overridden from views::WidgetObserver: 85 // Overridden from views::WidgetObserver:
89 virtual void OnWidgetActivationChanged( 86 virtual void OnWidgetActivationChanged(
90 views::Widget* widget, bool active) OVERRIDE; 87 views::Widget* widget, bool active) OVERRIDE;
91 88
92 // A function to test the current alpha used by the dimming bar. If there is 89 // A function to test the current alpha used by the dimming bar. If there is
93 // no dimmer active, the function will return -1. 90 // no dimmer active, the function will return -1.
94 int GetDimmingAlphaForTest(); 91 int GetDimmingAlphaForTest();
(...skipping 16 matching lines...) Expand all
111 // during CloseChildWindows of the associated RootWindowController. 108 // during CloseChildWindows of the associated RootWindowController.
112 DelegateView* delegate_view_; 109 DelegateView* delegate_view_;
113 internal::BackgroundAnimator background_animator_; 110 internal::BackgroundAnimator background_animator_;
114 bool activating_as_fallback_; 111 bool activating_as_fallback_;
115 aura::Window* window_container_; 112 aura::Window* window_container_;
116 }; 113 };
117 114
118 } // namespace ash 115 } // namespace ash
119 116
120 #endif // ASH_SHELF_SHELF_WIDGET_H_ 117 #endif // ASH_SHELF_SHELF_WIDGET_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_layout_manager_unittest.cc ('k') | ash/shelf/shelf_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698