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

Side by Side Diff: ash/wm/common/dock/docked_window_layout_manager.h

Issue 2018753003: Moves ash/wm/common back into ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove BUILD.gn again Created 4 years, 6 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/wm/common/default_window_resizer.h ('k') | ash/wm/common/dock/docked_window_layout_manager_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698