| 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_AURA_WINDOW_DELEGATE_H_ | 5 #ifndef UI_AURA_WINDOW_DELEGATE_H_ |
| 6 #define UI_AURA_WINDOW_DELEGATE_H_ | 6 #define UI_AURA_WINDOW_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "ui/aura/aura_export.h" | 10 #include "ui/aura/aura_export.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // Called from Window::HitTest to check if the window has a custom hit test | 87 // Called from Window::HitTest to check if the window has a custom hit test |
| 88 // mask. It works similar to the views counterparts. That is, if the function | 88 // mask. It works similar to the views counterparts. That is, if the function |
| 89 // returns true, GetHitTestMask below will be called to get the mask. | 89 // returns true, GetHitTestMask below will be called to get the mask. |
| 90 // Otherwise, Window will hit-test against its bounds. | 90 // Otherwise, Window will hit-test against its bounds. |
| 91 virtual bool HasHitTestMask() const = 0; | 91 virtual bool HasHitTestMask() const = 0; |
| 92 | 92 |
| 93 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask | 93 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask |
| 94 // above returns true. | 94 // above returns true. |
| 95 virtual void GetHitTestMask(gfx::Path* mask) const = 0; | 95 virtual void GetHitTestMask(gfx::Path* mask) const = 0; |
| 96 | 96 |
| 97 // Sent when the server requests the window to close. | |
| 98 virtual void OnRequestClose(); | |
| 99 | |
| 100 protected: | 97 protected: |
| 101 ~WindowDelegate() override {} | 98 ~WindowDelegate() override {} |
| 102 }; | 99 }; |
| 103 | 100 |
| 104 } // namespace aura | 101 } // namespace aura |
| 105 | 102 |
| 106 #endif // UI_AURA_WINDOW_DELEGATE_H_ | 103 #endif // UI_AURA_WINDOW_DELEGATE_H_ |
| OLD | NEW |