OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_EXO_SURFACE_H_ | 5 #ifndef COMPONENTS_EXO_SURFACE_H_ |
6 #define COMPONENTS_EXO_SURFACE_H_ | 6 #define COMPONENTS_EXO_SURFACE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 | 166 |
167 // Returns the current input region of surface in the form of a hit-test mask. | 167 // Returns the current input region of surface in the form of a hit-test mask. |
168 void GetHitTestMask(gfx::Path* mask) const; | 168 void GetHitTestMask(gfx::Path* mask) const; |
169 | 169 |
170 // Surface does not own cursor providers. It is the responsibility of the | 170 // Surface does not own cursor providers. It is the responsibility of the |
171 // caller to remove the cursor provider before it is destroyed. | 171 // caller to remove the cursor provider before it is destroyed. |
172 void RegisterCursorProvider(CursorProvider* provider); | 172 void RegisterCursorProvider(CursorProvider* provider); |
173 void UnregisterCursorProvider(CursorProvider* provider); | 173 void UnregisterCursorProvider(CursorProvider* provider); |
174 | 174 |
175 // Returns the cursor for the surface. If no cursor provider is registered | 175 // Returns the cursor for the surface. If no cursor provider is registered |
176 // then kCursorNull is returned. | 176 // then CursorType::kNull is returned. |
177 gfx::NativeCursor GetCursor(); | 177 gfx::NativeCursor GetCursor(); |
178 | 178 |
179 // Set the surface delegate. | 179 // Set the surface delegate. |
180 void SetSurfaceDelegate(SurfaceDelegate* delegate); | 180 void SetSurfaceDelegate(SurfaceDelegate* delegate); |
181 | 181 |
182 // Returns true if surface has been assigned a surface delegate. | 182 // Returns true if surface has been assigned a surface delegate. |
183 bool HasSurfaceDelegate() const; | 183 bool HasSurfaceDelegate() const; |
184 | 184 |
185 // Surface does not own observers. It is the responsibility of the observer | 185 // Surface does not own observers. It is the responsibility of the observer |
186 // to remove itself when it is done observing. | 186 // to remove itself when it is done observing. |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 cc::BeginFrameSource* begin_frame_source_ = nullptr; | 399 cc::BeginFrameSource* begin_frame_source_ = nullptr; |
400 bool needs_begin_frame_ = false; | 400 bool needs_begin_frame_ = false; |
401 cc::BeginFrameAck current_begin_frame_ack_; | 401 cc::BeginFrameAck current_begin_frame_ack_; |
402 | 402 |
403 DISALLOW_COPY_AND_ASSIGN(Surface); | 403 DISALLOW_COPY_AND_ASSIGN(Surface); |
404 }; | 404 }; |
405 | 405 |
406 } // namespace exo | 406 } // namespace exo |
407 | 407 |
408 #endif // COMPONENTS_EXO_SURFACE_H_ | 408 #endif // COMPONENTS_EXO_SURFACE_H_ |
OLD | NEW |