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