diff options
author | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-20 13:18:04 +0000 |
---|---|---|
committer | skuhne@chromium.org <skuhne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-20 13:18:04 +0000 |
commit | e55b73458a2ab5e2963f7d720405edccd51cbc9e (patch) | |
tree | d582ac30f4c4c22a0fec8abb0aec14e17f4b0be9 /ash/test | |
parent | 9b0d66b6fcb4c34964a678c9068c4635b3b040e8 (diff) | |
download | chromium_src-e55b73458a2ab5e2963f7d720405edccd51cbc9e.zip chromium_src-e55b73458a2ab5e2963f7d720405edccd51cbc9e.tar.gz chromium_src-e55b73458a2ab5e2963f7d720405edccd51cbc9e.tar.bz2 |
Adding new always maximized mode
This is (at this time) not complete. There are some outstanding issues to be resolved marked with TODO(skuhne) which I will address before submitting. This is meant to be a "preview".
What does it do?
It tracks the creation of all browsers / V1 / V2 applications and maximizes them automatically. Non maximizable windows will get centered and a layer will be put behind them. Note that not all windows can be maximized. Dialogs, tray, .. will remain in their window state.
The missing things:
- Background cover layer
- Removing of the restore button from the caption (different CL)
- Suppression of restore / fullscreen request events of any of the tracked windows.
BUG=337563
TEST=unit tests
Review URL: https://codereview.chromium.org/167503002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@252211 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/test')
-rw-r--r-- | ash/test/shell_test_api.cc | 5 | ||||
-rw-r--r-- | ash/test/shell_test_api.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ash/test/shell_test_api.cc b/ash/test/shell_test_api.cc index 5fe130e..07efa52 100644 --- a/ash/test/shell_test_api.cc +++ b/ash/test/shell_test_api.cc @@ -57,6 +57,11 @@ internal::AppListController* ShellTestApi::app_list_controller() { return shell_->app_list_controller_.get(); } +internal::MaximizeModeWindowManager* +ShellTestApi::maximize_mode_window_manager() { + return shell_->maximize_mode_window_manager_.get(); +} + void ShellTestApi::DisableOutputConfiguratorAnimation() { #if defined(OS_CHROMEOS) if (shell_->output_configurator_animation_) { diff --git a/ash/test/shell_test_api.h b/ash/test/shell_test_api.h index 269eb78..7306b3d 100644 --- a/ash/test/shell_test_api.h +++ b/ash/test/shell_test_api.h @@ -22,6 +22,7 @@ class Shell; namespace internal { class AppListController; class DragDropController; +class MaximizeModeWindowManager; class RootWindowLayoutManager; class ScreenPositionController; class SystemGestureEventFilter; @@ -44,7 +45,7 @@ public: ShelfModel* shelf_model(); internal::DragDropController* drag_drop_controller(); internal::AppListController* app_list_controller(); - + internal::MaximizeModeWindowManager* maximize_mode_window_manager(); void DisableOutputConfiguratorAnimation(); // Set ShelfDelegate. |