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

Unified Diff: sky/engine/core/view/View.h

Issue 1177563002: SkyView should handle screen rotation (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fixed Created 5 years, 6 months 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
« no previous file with comments | « no previous file | sky/engine/core/view/View.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/view/View.h
diff --git a/sky/engine/core/view/View.h b/sky/engine/core/view/View.h
index 9a01228fdb51e015ee659ba6220845245fb8b234..5297cf66959afa34221bf6cfa585593e141ece08 100644
--- a/sky/engine/core/view/View.h
+++ b/sky/engine/core/view/View.h
@@ -7,6 +7,7 @@
#include "base/callback.h"
#include "base/time/time.h"
+#include "sky/engine/core/html/VoidCallback.h"
#include "sky/engine/core/painting/Picture.h"
#include "sky/engine/core/view/BeginFrameCallback.h"
#include "sky/engine/core/view/EventCallback.h"
@@ -32,6 +33,8 @@ public:
void setEventCallback(PassOwnPtr<EventCallback> callback);
+ void setMetricsChangedCallback(PassOwnPtr<VoidCallback> callback);
+
void setBeginFrameCallback(PassOwnPtr<BeginFrameCallback> callback);
void scheduleFrame();
@@ -45,6 +48,7 @@ private:
base::Closure m_scheduleFrameCallback;
SkyDisplayMetrics m_displayMetrics;
OwnPtr<EventCallback> m_eventCallback;
+ OwnPtr<VoidCallback> m_metricsChangedCallback;
OwnPtr<BeginFrameCallback> m_beginFrameCallback;
RefPtr<Picture> m_picture;
};
« no previous file with comments | « no previous file | sky/engine/core/view/View.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698