OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // appropriate. Returns true if the gesture has been handled and it should not | 122 // appropriate. Returns true if the gesture has been handled and it should not |
123 // be processed any further, false otherwise. | 123 // be processed any further, false otherwise. |
124 bool ProcessGestureEvent(const ui::GestureEvent& event); | 124 bool ProcessGestureEvent(const ui::GestureEvent& event); |
125 | 125 |
126 // Set an animation duration override for the show / hide animation of the | 126 // Set an animation duration override for the show / hide animation of the |
127 // shelf. Specifying 0 leads to use the default. | 127 // shelf. Specifying 0 leads to use the default. |
128 void SetAnimationDurationOverride(int duration_override_in_ms); | 128 void SetAnimationDurationOverride(int duration_override_in_ms); |
129 | 129 |
130 // Overridden from wm::WmSnapToPixelLayoutManager: | 130 // Overridden from wm::WmSnapToPixelLayoutManager: |
131 void OnWindowResized() override; | 131 void OnWindowResized() override; |
132 void SetChildBounds(WmWindow* child, | 132 void SetChildBounds(aura::Window* child, |
133 const gfx::Rect& requested_bounds) override; | 133 const gfx::Rect& requested_bounds) override; |
134 | 134 |
135 // Overridden from ShellObserver: | 135 // Overridden from ShellObserver: |
136 void OnShelfAutoHideBehaviorChanged(WmWindow* root_window) override; | 136 void OnShelfAutoHideBehaviorChanged(WmWindow* root_window) override; |
137 void OnPinnedStateChanged(WmWindow* pinned_window) override; | 137 void OnPinnedStateChanged(WmWindow* pinned_window) override; |
138 void OnVirtualKeyboardStateChanged(bool activated, | 138 void OnVirtualKeyboardStateChanged(bool activated, |
139 WmWindow* root_window) override; | 139 aura::Window* root_window) override; |
140 | 140 |
141 // Overridden from aura::client::ActivationChangeObserver: | 141 // Overridden from aura::client::ActivationChangeObserver: |
142 void OnWindowActivated(ActivationReason reason, | 142 void OnWindowActivated(ActivationReason reason, |
143 aura::Window* gained_active, | 143 aura::Window* gained_active, |
144 aura::Window* lost_active) override; | 144 aura::Window* lost_active) override; |
145 | 145 |
146 // Overridden from keyboard::KeyboardControllerObserver: | 146 // Overridden from keyboard::KeyboardControllerObserver: |
147 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; | 147 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; |
148 void OnKeyboardClosed() override; | 148 void OnKeyboardClosed() override; |
149 | 149 |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 keyboard::KeyboardControllerObserver> | 364 keyboard::KeyboardControllerObserver> |
365 keyboard_observer_; | 365 keyboard_observer_; |
366 ScopedSessionObserver scoped_session_observer_; | 366 ScopedSessionObserver scoped_session_observer_; |
367 | 367 |
368 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); | 368 DISALLOW_COPY_AND_ASSIGN(ShelfLayoutManager); |
369 }; | 369 }; |
370 | 370 |
371 } // namespace ash | 371 } // namespace ash |
372 | 372 |
373 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ | 373 #endif // ASH_SHELF_SHELF_LAYOUT_MANAGER_H_ |
OLD | NEW |