OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 5 #ifndef ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
6 #define ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 6 #define ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/wm/common/ash_wm_common_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/wm/common/dock/dock_types.h" | 11 #include "ash/wm/common/dock/dock_types.h" |
12 #include "ash/wm/common/dock/docked_window_layout_manager_observer.h" | 12 #include "ash/wm/common/dock/docked_window_layout_manager_observer.h" |
13 #include "ash/wm/common/window_state_observer.h" | 13 #include "ash/wm/common/window_state_observer.h" |
14 #include "ash/wm/common/wm_activation_observer.h" | 14 #include "ash/wm/common/wm_activation_observer.h" |
15 #include "ash/wm/common/wm_root_window_controller_observer.h" | 15 #include "ash/wm/common/wm_root_window_controller_observer.h" |
16 #include "ash/wm/common/wm_snap_to_pixel_layout_manager.h" | 16 #include "ash/wm/common/wm_snap_to_pixel_layout_manager.h" |
17 #include "ash/wm/common/wm_window_observer.h" | 17 #include "ash/wm/common/wm_window_observer.h" |
18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/observer_list.h" | 20 #include "base/observer_list.h" |
(...skipping 17 matching lines...) Expand all Loading... |
38 // window (i.e. kShellWindowId_DockedContainer) and controls the layout of any | 38 // window (i.e. kShellWindowId_DockedContainer) and controls the layout of any |
39 // windows added to that container. | 39 // windows added to that container. |
40 // | 40 // |
41 // The constructor takes a |dock_container| argument which is expected to set | 41 // The constructor takes a |dock_container| argument which is expected to set |
42 // its layout manager to this instance, e.g.: | 42 // its layout manager to this instance, e.g.: |
43 // dock_container->SetLayoutManager( | 43 // dock_container->SetLayoutManager( |
44 // new DockedWindowLayoutManager(dock_container)); | 44 // new DockedWindowLayoutManager(dock_container)); |
45 // | 45 // |
46 // TODO(varkha): extend BaseLayoutManager instead of LayoutManager to inherit | 46 // TODO(varkha): extend BaseLayoutManager instead of LayoutManager to inherit |
47 // common functionality. | 47 // common functionality. |
48 class ASH_WM_COMMON_EXPORT DockedWindowLayoutManager | 48 class ASH_EXPORT DockedWindowLayoutManager |
49 : public wm::WmSnapToPixelLayoutManager, | 49 : public wm::WmSnapToPixelLayoutManager, |
50 public wm::WmRootWindowControllerObserver, | 50 public wm::WmRootWindowControllerObserver, |
51 public wm::WmWindowObserver, | 51 public wm::WmWindowObserver, |
52 public wm::WmActivationObserver, | 52 public wm::WmActivationObserver, |
53 public keyboard::KeyboardControllerObserver, | 53 public keyboard::KeyboardControllerObserver, |
54 public wm::WindowStateObserver { | 54 public wm::WindowStateObserver { |
55 public: | 55 public: |
56 // Maximum width of the docked windows area. | 56 // Maximum width of the docked windows area. |
57 static const int kMaxDockWidth; | 57 static const int kMaxDockWidth; |
58 | 58 |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 | 306 |
307 // Observers of dock bounds changes. | 307 // Observers of dock bounds changes. |
308 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; | 308 base::ObserverList<DockedWindowLayoutManagerObserver> observer_list_; |
309 | 309 |
310 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); | 310 DISALLOW_COPY_AND_ASSIGN(DockedWindowLayoutManager); |
311 }; | 311 }; |
312 | 312 |
313 } // namespace ash | 313 } // namespace ash |
314 | 314 |
315 #endif // ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ | 315 #endif // ASH_WM_COMMON_DOCK_DOCKED_WINDOW_LAYOUT_MANAGER_H_ |
OLD | NEW |