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

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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // Called by the activation delegate, before the launcher is activated 68 // Called by the activation delegate, before the launcher is activated
69 // when no other windows are visible. 69 // when no other windows are visible.
70 void WillActivateAsFallback() { activating_as_fallback_ = true; } 70 void WillActivateAsFallback() { activating_as_fallback_ = true; }
71 71
72 aura::Window* window_container() { return window_container_; } 72 aura::Window* window_container() { return window_container_; }
73 73
74 // TODO(harrym): Remove when Status Area Widget is a child view. 74 // TODO(harrym): Remove when Status Area Widget is a child view.
75 void ShutdownStatusAreaWidget(); 75 void ShutdownStatusAreaWidget();
76 76
77 // Set the bounds of the widget and the dim shelf overlay.
78 void SetWidgetBounds(const gfx::Rect& rect);
79
80 // Force the shelf to be presented in an undimmed state. 77 // Force the shelf to be presented in an undimmed state.
81 void ForceUndimming(bool force); 78 void ForceUndimming(bool force);
82 79
83 // Overridden from views::WidgetObserver: 80 // Overridden from views::WidgetObserver:
84 virtual void OnWidgetActivationChanged( 81 virtual void OnWidgetActivationChanged(
85 views::Widget* widget, bool active) OVERRIDE; 82 views::Widget* widget, bool active) OVERRIDE;
86 83
87 // A function to test the current alpha used by the dimming bar. If there is 84 // A function to test the current alpha used by the dimming bar. If there is
88 // no dimmer active, the function will return -1. 85 // no dimmer active, the function will return -1.
89 int GetDimmingAlphaForTest(); 86 int GetDimmingAlphaForTest();
(...skipping 16 matching lines...) Expand all
106 // during CloseChildWindows of the associated RootWindowController. 103 // during CloseChildWindows of the associated RootWindowController.
107 DelegateView* delegate_view_; 104 DelegateView* delegate_view_;
108 internal::BackgroundAnimator background_animator_; 105 internal::BackgroundAnimator background_animator_;
109 bool activating_as_fallback_; 106 bool activating_as_fallback_;
110 aura::Window* window_container_; 107 aura::Window* window_container_;
111 }; 108 };
112 109
113 } // namespace ash 110 } // namespace ash
114 111
115 #endif // ASH_SHELF_SHELF_WIDGET_H_ 112 #endif // ASH_SHELF_SHELF_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698