OLD | NEW |
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_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 | 339 |
340 // TODO(oshima): Define an interface to access shelf/launcher | 340 // TODO(oshima): Define an interface to access shelf/launcher |
341 // state, or just use Launcher. | 341 // state, or just use Launcher. |
342 | 342 |
343 // Sets/gets the shelf auto-hide behavior on |root_window|. | 343 // Sets/gets the shelf auto-hide behavior on |root_window|. |
344 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, | 344 void SetShelfAutoHideBehavior(ShelfAutoHideBehavior behavior, |
345 aura::RootWindow* root_window); | 345 aura::RootWindow* root_window); |
346 ShelfAutoHideBehavior GetShelfAutoHideBehavior( | 346 ShelfAutoHideBehavior GetShelfAutoHideBehavior( |
347 aura::RootWindow* root_window) const; | 347 aura::RootWindow* root_window) const; |
348 | 348 |
349 bool IsShelfAutoHideMenuHideChecked(aura::RootWindow* root); | |
350 ShelfAutoHideBehavior GetToggledShelfAutoHideBehavior( | |
351 aura::RootWindow* root_window); | |
352 | |
353 // Sets/gets shelf's alignment on |root_window|. | 349 // Sets/gets shelf's alignment on |root_window|. |
354 void SetShelfAlignment(ShelfAlignment alignment, | 350 void SetShelfAlignment(ShelfAlignment alignment, |
355 aura::RootWindow* root_window); | 351 aura::RootWindow* root_window); |
356 ShelfAlignment GetShelfAlignment(aura::RootWindow* root_window); | 352 ShelfAlignment GetShelfAlignment(aura::RootWindow* root_window); |
357 | 353 |
358 // Dims or undims the screen. | 354 // Dims or undims the screen. |
359 void SetDimming(bool should_dim); | 355 void SetDimming(bool should_dim); |
360 | 356 |
361 // Creates a modal background (a partially-opaque fullscreen window) | 357 // Creates a modal background (a partially-opaque fullscreen window) |
362 // on all displays for |window|. | 358 // on all displays for |window|. |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 | 547 |
552 // For testing only: simulate that a modal window is open | 548 // For testing only: simulate that a modal window is open |
553 bool simulate_modal_window_open_for_testing_; | 549 bool simulate_modal_window_open_for_testing_; |
554 | 550 |
555 DISALLOW_COPY_AND_ASSIGN(Shell); | 551 DISALLOW_COPY_AND_ASSIGN(Shell); |
556 }; | 552 }; |
557 | 553 |
558 } // namespace ash | 554 } // namespace ash |
559 | 555 |
560 #endif // ASH_SHELL_H_ | 556 #endif // ASH_SHELL_H_ |
OLD | NEW |