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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 bool IsModalWindowOpen() const; | 150 bool IsModalWindowOpen() const; |
151 | 151 |
152 // Creates a default views::NonClientFrameView for use by windows in the | 152 // Creates a default views::NonClientFrameView for use by windows in the |
153 // Ash environment. | 153 // Ash environment. |
154 views::NonClientFrameView* CreateDefaultNonClientFrameView( | 154 views::NonClientFrameView* CreateDefaultNonClientFrameView( |
155 views::Widget* widget); | 155 views::Widget* widget); |
156 | 156 |
157 // Rotate focus through containers that can receive focus. | 157 // Rotate focus through containers that can receive focus. |
158 void RotateFocus(Direction direction); | 158 void RotateFocus(Direction direction); |
159 | 159 |
160 // Sets the screen's work area insets, this notifies observers too. | 160 // Sets the work area insets of the monitor that contains |window|, |
161 void SetScreenWorkAreaInsets(const gfx::Insets& insets); | 161 // this notifies observers too. |
162 void SetMonitorWorkAreaInsets(aura::Window* window, | |
163 const gfx::Insets& insets); | |
oshima
2012/03/14 16:31:30
This will be moved to with MonitorManager in follo
| |
162 | 164 |
163 // Add/remove observer. | 165 // Add/remove observer. |
164 void AddShellObserver(ShellObserver* observer); | 166 void AddShellObserver(ShellObserver* observer); |
165 void RemoveShellObserver(ShellObserver* observer); | 167 void RemoveShellObserver(ShellObserver* observer); |
166 | 168 |
167 #if !defined(OS_MACOSX) | 169 #if !defined(OS_MACOSX) |
168 AcceleratorController* accelerator_controller() { | 170 AcceleratorController* accelerator_controller() { |
169 return accelerator_controller_.get(); | 171 return accelerator_controller_.get(); |
170 } | 172 } |
171 #endif // !defined(OS_MACOSX) | 173 #endif // !defined(OS_MACOSX) |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
321 // System tray with clock, Wi-Fi signal, etc. (a replacement in progress for | 323 // System tray with clock, Wi-Fi signal, etc. (a replacement in progress for |
322 // |status_widget_|). | 324 // |status_widget_|). |
323 scoped_ptr<SystemTray> tray_; | 325 scoped_ptr<SystemTray> tray_; |
324 | 326 |
325 DISALLOW_COPY_AND_ASSIGN(Shell); | 327 DISALLOW_COPY_AND_ASSIGN(Shell); |
326 }; | 328 }; |
327 | 329 |
328 } // namespace ash | 330 } // namespace ash |
329 | 331 |
330 #endif // ASH_SHELL_H_ | 332 #endif // ASH_SHELL_H_ |
OLD | NEW |