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