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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "ui/aura/client/focus_change_observer.h" | 9 #include "ui/aura/client/focus_change_observer.h" |
10 #include "ui/aura/window_delegate.h" | 10 #include "ui/aura/window_delegate.h" |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // Overridden from aura::WindowTreeHostObserver: | 231 // Overridden from aura::WindowTreeHostObserver: |
232 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; | 232 void OnHostCloseRequested(const aura::WindowTreeHost* host) override; |
233 void OnHostResized(const aura::WindowTreeHost* host) override; | 233 void OnHostResized(const aura::WindowTreeHost* host) override; |
234 void OnHostMoved(const aura::WindowTreeHost* host, | 234 void OnHostMoved(const aura::WindowTreeHost* host, |
235 const gfx::Point& new_origin) override; | 235 const gfx::Point& new_origin) override; |
236 | 236 |
237 private: | 237 private: |
238 friend class FocusManagerEventHandler; | 238 friend class FocusManagerEventHandler; |
239 friend class RootWindowDestructionObserver; | 239 friend class RootWindowDestructionObserver; |
240 | 240 |
| 241 static void SetForWindow(aura::Window* window, |
| 242 DesktopNativeWidgetAura* desktop_native_widget); |
| 243 |
241 // Installs the input method filter. | 244 // Installs the input method filter. |
242 void InstallInputMethodEventFilter(); | 245 void InstallInputMethodEventFilter(); |
243 | 246 |
244 // To save a clear on platforms where the window is never transparent, the | 247 // To save a clear on platforms where the window is never transparent, the |
245 // window is only set as transparent when the glass frame is in use. | 248 // window is only set as transparent when the glass frame is in use. |
246 void UpdateWindowTransparency(); | 249 void UpdateWindowTransparency(); |
247 | 250 |
248 void RootWindowDestroyed(); | 251 void RootWindowDestroyed(); |
249 | 252 |
250 scoped_ptr<aura::WindowTreeHost> host_; | 253 scoped_ptr<aura::WindowTreeHost> host_; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 // The following factory is used for calls to close the NativeWidgetAura | 317 // The following factory is used for calls to close the NativeWidgetAura |
315 // instance. | 318 // instance. |
316 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; | 319 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; |
317 | 320 |
318 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 321 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
319 }; | 322 }; |
320 | 323 |
321 } // namespace views | 324 } // namespace views |
322 | 325 |
323 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 326 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |