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

Unified Diff: mojo/services/view_manager/server_view.h

Issue 720883003: Adds a CloneAndAnimate function to WindowManagerInternalClient (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: tweaks Created 6 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698