Chromium Code Reviews| 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 |