| 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_DISPLAY_DISPLAY_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
| 6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 6 #define ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "ash/ash_export.h" | 11 #include "ash/ash_export.h" |
| 12 #include "ash/display/display_manager.h" | 12 #include "ash/display/display_manager.h" |
| 13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/gtest_prod_util.h" | 15 #include "base/gtest_prod_util.h" |
| 16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "ui/aura/root_window_observer.h" | 19 #include "ui/aura/root_window_observer.h" |
| 20 #include "ui/aura/window.h" | |
| 21 #include "ui/gfx/display_observer.h" | 20 #include "ui/gfx/display_observer.h" |
| 22 #include "ui/gfx/point.h" | 21 #include "ui/gfx/point.h" |
| 23 | 22 |
| 24 namespace aura { | 23 namespace aura { |
| 25 class Display; | 24 class Display; |
| 26 class RootWindow; | 25 class RootWindow; |
| 27 } | 26 } |
| 28 | 27 |
| 29 namespace base { | 28 namespace base { |
| 30 class Value; | 29 class Value; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 | 111 |
| 113 // Sets primary display. This re-assigns the current root | 112 // Sets primary display. This re-assigns the current root |
| 114 // window to given |display|. | 113 // window to given |display|. |
| 115 void SetPrimaryDisplay(const gfx::Display& display); | 114 void SetPrimaryDisplay(const gfx::Display& display); |
| 116 | 115 |
| 117 // Closes all child windows in the all root windows. | 116 // Closes all child windows in the all root windows. |
| 118 void CloseChildWindows(); | 117 void CloseChildWindows(); |
| 119 | 118 |
| 120 // Returns all root windows. In non extended desktop mode, this | 119 // Returns all root windows. In non extended desktop mode, this |
| 121 // returns the primary root window only. | 120 // returns the primary root window only. |
| 122 aura::Window::Windows GetAllRootWindows(); | 121 std::vector<aura::RootWindow*> GetAllRootWindows(); |
| 123 | 122 |
| 124 // Returns all oot window controllers. In non extended desktop | 123 // Returns all oot window controllers. In non extended desktop |
| 125 // mode, this return a RootWindowController for the primary root window only. | 124 // mode, this return a RootWindowController for the primary root window only. |
| 126 std::vector<internal::RootWindowController*> GetAllRootWindowControllers(); | 125 std::vector<internal::RootWindowController*> GetAllRootWindowControllers(); |
| 127 | 126 |
| 128 // Gets/Sets/Clears the overscan insets for the specified |display_id|. See | 127 // Gets/Sets/Clears the overscan insets for the specified |display_id|. See |
| 129 // display_manager.h for the details. | 128 // display_manager.h for the details. |
| 130 gfx::Insets GetOverscanInsets(int64 display_id) const; | 129 gfx::Insets GetOverscanInsets(int64 display_id) const; |
| 131 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); | 130 void SetOverscanInsets(int64 display_id, const gfx::Insets& insets_in_dip); |
| 132 | 131 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // restore the cursor location when display configuration | 218 // restore the cursor location when display configuration |
| 220 // changed. | 219 // changed. |
| 221 gfx::Point cursor_location_in_native_coords_for_restore_; | 220 gfx::Point cursor_location_in_native_coords_for_restore_; |
| 222 | 221 |
| 223 DISALLOW_COPY_AND_ASSIGN(DisplayController); | 222 DISALLOW_COPY_AND_ASSIGN(DisplayController); |
| 224 }; | 223 }; |
| 225 | 224 |
| 226 } // namespace ash | 225 } // namespace ash |
| 227 | 226 |
| 228 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ | 227 #endif // ASH_DISPLAY_DISPLAY_CONTROLLER_H_ |
| OLD | NEW |