OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WebMutableState_h | |
6 #define WebMutableState_h | |
7 | |
8 #include <cstdint> | |
9 | |
10 class SkMatrix44; | |
11 | |
12 namespace blink { | |
13 | |
14 class WebMutableState; | |
15 | |
16 class WebMutableStateProvider { | |
esprehn
2015/11/16 20:01:04
this needs a less generic name, "mutable state" is
Ian Vollick
2015/11/18 17:20:33
Done.
| |
17 public: | |
18 virtual ~WebMutableStateProvider() { } | |
19 | |
20 // The caller is expected to take ownership. | |
21 virtual WebMutableState* getMutableStateFor(uint64_t elementId) = 0; | |
enne (OOO)
2015/11/16 19:12:33
Raw pointers in APIs. T_T
unique_ptr support sho
danakj
2015/11/16 19:31:18
This is platform, can it just use scoped_ptr?
Ian Vollick
2015/11/18 17:20:33
This pointer ultimately ends up being owned by cor
| |
22 }; | |
23 | |
24 class WebMutableState { | |
esprehn
2015/11/16 20:01:04
ditto, needs a better name, also a comment.
Ian Vollick
2015/11/18 17:20:33
Done.
| |
25 public: | |
26 virtual ~WebMutableState() { } | |
27 | |
28 virtual double getOpacity() const = 0; | |
esprehn
2015/11/16 20:01:04
opacity(), no get* for a getter.
Ian Vollick
2015/11/18 17:20:33
Done.
| |
29 virtual void setOpacity(double) = 0; | |
30 | |
31 virtual const SkMatrix44& getTransform() const = 0; | |
esprehn
2015/11/16 20:01:04
ditto for all of these
Ian Vollick
2015/11/18 17:20:33
Done.
| |
32 virtual void setTransform(const SkMatrix44&) = 0; | |
33 | |
34 virtual double getScrollLeft() const = 0; | |
35 virtual void setScrollLeft(double) = 0; | |
36 | |
37 virtual double getScrollTop() const = 0; | |
38 virtual void setScrollTop(double) = 0; | |
39 }; | |
40 | |
41 } // namespace blink | |
42 | |
43 #endif // WebMutableState_h | |
OLD | NEW |