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

Unified Diff: services/view_manager/server_view.h

Issue 772893004: Adds constants and runner for animations (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: tweaks Created 6 years 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: services/view_manager/server_view.h
diff --git a/services/view_manager/server_view.h b/services/view_manager/server_view.h
index afce3d3a4e75e213a6d2736823c9d730a9d5a428..24a64961d71df10c94c50b208bd6b6f597db25bd 100644
--- a/services/view_manager/server_view.h
+++ b/services/view_manager/server_view.h
@@ -12,6 +12,7 @@
#include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h"
#include "services/view_manager/ids.h"
#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/transform.h"
namespace mojo {
namespace service {
@@ -63,6 +64,9 @@ class ServerView {
float opacity() const { return opacity_; }
void SetOpacity(float value);
+ const gfx::Transform& transform() const { return transform_; }
+ void SetTransform(const gfx::Transform& transform);
Elliot Glaysher 2014/12/03 23:49:59 If ServerView's have arbitrary transforms now, do
sky 2014/12/04 00:21:23 The client lib will definitely want transform too.
+
const std::map<std::string, std::vector<uint8_t>>& properties() const {
return properties_;
}
@@ -73,7 +77,7 @@ class ServerView {
bool IsDrawn(const ServerView* root) const;
void SetSurfaceId(cc::SurfaceId surface_id);
- const cc::SurfaceId surface_id() const { return surface_id_; }
+ const cc::SurfaceId& surface_id() const { return surface_id_; }
#if !defined(NDEBUG)
std::string GetDebugWindowHierarchy() const;
@@ -94,6 +98,7 @@ class ServerView {
gfx::Rect bounds_;
cc::SurfaceId surface_id_;
float opacity_;
+ gfx::Transform transform_;
std::map<std::string, std::vector<uint8_t>> properties_;

Powered by Google App Engine
This is Rietveld 408576698