OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_HOSTWM_HOST_WINDOW_MANAGER_CLIENT_H_ |
| 6 #define UI_AURA_HOSTWM_HOST_WINDOW_MANAGER_CLIENT_H_ |
| 7 |
| 8 #include "ui/aura/aura_export.h" |
| 9 #include "ui/gfx/rect.h" |
| 10 #include "ui/gfx/native_widget_types.h" |
| 11 |
| 12 namespace aura { |
| 13 class RootWindow; |
| 14 namespace client { |
| 15 |
| 16 class AURA_EXPORT HostWindowManagerClient { |
| 17 public: |
| 18 virtual gfx::NativeWindow OnHostWindowCreated( |
| 19 const gfx::Rect& bounds, bool decorated) = 0; |
| 20 virtual void OnHostWindowDestroyed(gfx::NativeWindow window) = 0; |
| 21 virtual void OnHostWindowMovedOrResized( |
| 22 gfx::NativeWindow window, const gfx::Rect& bounds) = 0; |
| 23 virtual void OnHostWindowMovedOrResizedConstrained( |
| 24 gfx::NativeWindow window, const gfx::Rect& bounds) = 0; |
| 25 virtual void OnHostWindowVisibilityChanged( |
| 26 gfx::NativeWindow window, bool visible) = 0; |
| 27 virtual RootWindow* GetRootWindow() = 0; |
| 28 |
| 29 protected: |
| 30 virtual ~HostWindowManagerClient() {} |
| 31 }; |
| 32 |
| 33 } // namespace client |
| 34 } // namespace aura |
| 35 |
| 36 #endif // UI_AURA_HOSTWM_HOST_WINDOW_MANAGER_CLIENT_H_ |
OLD | NEW |