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

Unified Diff: sky/engine/core/frame/RemoteFrame.h

Issue 682413006: Add a separate call to initialize the bounds for a sky <iframe> element. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: . 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: sky/engine/core/frame/RemoteFrame.h
diff --git a/sky/engine/core/frame/RemoteFrame.h b/sky/engine/core/frame/RemoteFrame.h
new file mode 100644
index 0000000000000000000000000000000000000000..1cf8c5bbb5609a99851da2f413f540f52a36fa66
--- /dev/null
+++ b/sky/engine/core/frame/RemoteFrame.h
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef RemoteFrame_h
+#define RemoteFrame_h
+
+#include "mojo/services/public/cpp/view_manager/view_observer.h"
+
+namespace mojo {
+class View;
+}
+
+namespace blink {
+
+class IntRect;
+
+// This class encapsulates the mojo View that backs an HTMLIFrameElement.
abarth-chromium 2014/11/10 23:03:51 Why encapsulate? Can't folks just use a mojo::Vie
Matt Perry 2014/11/10 23:35:34 I was expecting there to be more methods eventuall
+class RemoteFrame : public mojo::ViewObserver {
+public:
+ RemoteFrame(mojo::View* view);
+ virtual ~RemoteFrame() {}
+
+ void setBounds(const IntRect& bounds);
+
+private:
+ // ViewObserver methods:
+ void OnViewDestroyed(mojo::View* view) override;
+
+ mojo::View* m_view;
+};
+
+} // namespace blink
+
+#endif // RemoteFrame_h

Powered by Google App Engine
This is Rietveld 408576698