Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: ui/aura/window_delegate.h

Issue 2445163002: Make aura work with mus (Closed)
Patch Set: NON_EXPORTED_BASE_CLASS Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/aura/test/test_screen.cc ('k') | ui/aura/window_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Called from Window::HitTest to check if the window has a custom hit test 95 // Called from Window::HitTest to check if the window has a custom hit test
96 // mask. It works similar to the views counterparts. That is, if the function 96 // mask. It works similar to the views counterparts. That is, if the function
97 // returns true, GetHitTestMask below will be called to get the mask. 97 // returns true, GetHitTestMask below will be called to get the mask.
98 // Otherwise, Window will hit-test against its bounds. 98 // Otherwise, Window will hit-test against its bounds.
99 virtual bool HasHitTestMask() const = 0; 99 virtual bool HasHitTestMask() const = 0;
100 100
101 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask 101 // Called from Window::HitTest to retrieve hit test mask when HasHitTestMask
102 // above returns true. 102 // above returns true.
103 virtual void GetHitTestMask(gfx::Path* mask) const = 0; 103 virtual void GetHitTestMask(gfx::Path* mask) const = 0;
104 104
105 // Sent when the server requests the window to close.
106 virtual void OnRequestClose();
107
105 protected: 108 protected:
106 ~WindowDelegate() override {} 109 ~WindowDelegate() override {}
107 }; 110 };
108 111
109 } // namespace aura 112 } // namespace aura
110 113
111 #endif // UI_AURA_WINDOW_DELEGATE_H_ 114 #endif // UI_AURA_WINDOW_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/aura/test/test_screen.cc ('k') | ui/aura/window_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698