Chromium Code Reviews| Index: mojo/services/view_manager/server_view.h |
| diff --git a/mojo/services/view_manager/server_view.h b/mojo/services/view_manager/server_view.h |
| index 88de03ccb62ca29148919e6315badaf383cbee8f..d5122f1760344e7731b685944631d7ba99650a9e 100644 |
| --- a/mojo/services/view_manager/server_view.h |
| +++ b/mojo/services/view_manager/server_view.h |
| @@ -60,6 +60,9 @@ class ServerView { |
| bool visible() const { return visible_; } |
| void SetVisible(bool value); |
| + float opacity() const { return opacity_; } |
| + void SetOpacity(float value); |
| + |
| const std::map<std::string, std::vector<uint8_t>>& properties() const { |
| return properties_; |
| } |
| @@ -85,6 +88,8 @@ class ServerView { |
| bool visible_; |
| gfx::Rect bounds_; |
| cc::SurfaceId surface_id_; |
| + float opacity_; |
|
msw
2014/11/18 23:37:42
nit q: can you replace |visible_| with opacity_ >
sky
2014/11/19 00:49:39
Indeed. They are two separate things. Opacity isn'
msw
2014/11/19 01:27:51
Acknowledged.
|
| + |
| std::map<std::string, std::vector<uint8_t>> properties_; |
| DISALLOW_COPY_AND_ASSIGN(ServerView); |