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_WINDOW_TREE_HOST_MANAGER_H_ | 5 #ifndef ASH_DISPLAY_WINDOW_TREE_HOST_MANAGER_H_ |
6 #define ASH_DISPLAY_WINDOW_TREE_HOST_MANAGER_H_ | 6 #define ASH_DISPLAY_WINDOW_TREE_HOST_MANAGER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 | 150 |
151 // aura::WindowTreeHostObserver overrides: | 151 // aura::WindowTreeHostObserver overrides: |
152 void OnHostResized(const aura::WindowTreeHost* host) override; | 152 void OnHostResized(const aura::WindowTreeHost* host) override; |
153 | 153 |
154 // display::DisplayManager::Delegate overrides: | 154 // display::DisplayManager::Delegate overrides: |
155 void CreateOrUpdateMirroringDisplay( | 155 void CreateOrUpdateMirroringDisplay( |
156 const display::DisplayInfoList& info_list) override; | 156 const display::DisplayInfoList& info_list) override; |
157 void CloseMirroringDisplayIfNotNecessary() override; | 157 void CloseMirroringDisplayIfNotNecessary() override; |
158 void PreDisplayConfigurationChange(bool clear_focus) override; | 158 void PreDisplayConfigurationChange(bool clear_focus) override; |
159 void PostDisplayConfigurationChange(bool must_clear_window) override; | 159 void PostDisplayConfigurationChange(bool must_clear_window) override; |
160 #if defined(OS_CHROMEOS) | |
161 ui::DisplayConfigurator* display_configurator() override; | 160 ui::DisplayConfigurator* display_configurator() override; |
162 #endif | |
163 | 161 |
164 // ui::internal::InputMethodDelegate overrides: | 162 // ui::internal::InputMethodDelegate overrides: |
165 ui::EventDispatchDetails DispatchKeyEventPostIME( | 163 ui::EventDispatchDetails DispatchKeyEventPostIME( |
166 ui::KeyEvent* event) override; | 164 ui::KeyEvent* event) override; |
167 | 165 |
168 InputMethodEventHandler* input_method_event_handler() { | 166 InputMethodEventHandler* input_method_event_handler() { |
169 return input_method_event_handler_.get(); | 167 return input_method_event_handler_.get(); |
170 } | 168 } |
171 | 169 |
172 private: | 170 private: |
173 FRIEND_TEST_ALL_PREFIXES(WindowTreeHostManagerTest, BoundsUpdated); | 171 FRIEND_TEST_ALL_PREFIXES(WindowTreeHostManagerTest, BoundsUpdated); |
174 FRIEND_TEST_ALL_PREFIXES(WindowTreeHostManagerTest, SecondaryDisplayLayout); | 172 FRIEND_TEST_ALL_PREFIXES(WindowTreeHostManagerTest, SecondaryDisplayLayout); |
175 friend class DisplayManager; | |
176 friend class MirrorWindowController; | 173 friend class MirrorWindowController; |
177 | 174 |
178 // Creates a WindowTreeHost for |display| and stores it in the | 175 // Creates a WindowTreeHost for |display| and stores it in the |
179 // |window_tree_hosts_| map. | 176 // |window_tree_hosts_| map. |
180 AshWindowTreeHost* AddWindowTreeHostForDisplay( | 177 AshWindowTreeHost* AddWindowTreeHostForDisplay( |
181 const display::Display& display, | 178 const display::Display& display, |
182 const AshWindowTreeHostInitParams& params); | 179 const AshWindowTreeHostInitParams& params); |
183 | 180 |
184 // Delete the AsWindowTreeHost. This does not remove the entry from | 181 // Delete the AsWindowTreeHost. This does not remove the entry from |
185 // |window_tree_hosts_|. Caller has to explicitly remove it. | 182 // |window_tree_hosts_|. Caller has to explicitly remove it. |
(...skipping 29 matching lines...) Expand all Loading... |
215 int64_t cursor_display_id_for_restore_; | 212 int64_t cursor_display_id_for_restore_; |
216 | 213 |
217 base::WeakPtrFactory<WindowTreeHostManager> weak_ptr_factory_; | 214 base::WeakPtrFactory<WindowTreeHostManager> weak_ptr_factory_; |
218 | 215 |
219 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostManager); | 216 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostManager); |
220 }; | 217 }; |
221 | 218 |
222 } // namespace ash | 219 } // namespace ash |
223 | 220 |
224 #endif // ASH_DISPLAY_WINDOW_TREE_HOST_MANAGER_H_ | 221 #endif // ASH_DISPLAY_WINDOW_TREE_HOST_MANAGER_H_ |
OLD | NEW |