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

Side by Side Diff: ash/wm/base_layout_manager.h

Issue 9699013: MonitorManager to manage multiple monitors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
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_WM_BASE_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_BASE_LAYOUT_MANAGER_H_
6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_ 6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE; 47 virtual void OnWillRemoveWindowFromLayout(aura::Window* child) OVERRIDE;
48 virtual void OnChildWindowVisibilityChanged(aura::Window* child, 48 virtual void OnChildWindowVisibilityChanged(aura::Window* child,
49 bool visible) OVERRIDE; 49 bool visible) OVERRIDE;
50 virtual void SetChildBounds(aura::Window* child, 50 virtual void SetChildBounds(aura::Window* child,
51 const gfx::Rect& requested_bounds) OVERRIDE; 51 const gfx::Rect& requested_bounds) OVERRIDE;
52 52
53 // RootWindowObserver overrides: 53 // RootWindowObserver overrides:
54 virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE; 54 virtual void OnRootWindowResized(const gfx::Size& new_size) OVERRIDE;
55 55
56 // ash::ShellObserver overrides: 56 // ash::ShellObserver overrides:
57 virtual void OnScreenWorkAreaInsetsChanged() OVERRIDE; 57 virtual void OnMonitorWorkAreaInsetsChanged() OVERRIDE;
58 58
59 // WindowObserver overrides: 59 // WindowObserver overrides:
60 virtual void OnWindowPropertyChanged(aura::Window* window, 60 virtual void OnWindowPropertyChanged(aura::Window* window,
61 const void* key, 61 const void* key,
62 intptr_t old) OVERRIDE; 62 intptr_t old) OVERRIDE;
63 63
64 private: 64 private:
65 // Update window bounds based on a change in show state. 65 // Update window bounds based on a change in show state.
66 void UpdateBoundsFromShowState(aura::Window* window); 66 void UpdateBoundsFromShowState(aura::Window* window);
67 67
68 // Adjusts the window sizes when the screen changes its size or its 68 // Adjusts the window sizes when the screen changes its size or its
69 // work area insets. 69 // work area insets.
70 void AdjustWindowSizesForScreenChange(); 70 void AdjustWindowSizesForScreenChange();
71 71
72 // Set of windows we're listening to. 72 // Set of windows we're listening to.
73 WindowSet windows_; 73 WindowSet windows_;
74 74
75 aura::RootWindow* root_window_; 75 aura::RootWindow* root_window_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); 77 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager);
78 }; 78 };
79 79
80 } // namespace internal 80 } // namespace internal
81 } // namespace ash 81 } // namespace ash
82 82
83 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ 83 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698