Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef RemoteFrame_h | |
| 6 #define RemoteFrame_h | |
| 7 | |
| 8 #include "mojo/services/public/cpp/view_manager/view_observer.h" | |
| 9 | |
| 10 namespace mojo { | |
| 11 class View; | |
| 12 } | |
| 13 | |
| 14 namespace blink { | |
| 15 | |
| 16 class IntRect; | |
| 17 | |
| 18 // 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
| |
| 19 class RemoteFrame : public mojo::ViewObserver { | |
| 20 public: | |
| 21 RemoteFrame(mojo::View* view); | |
| 22 virtual ~RemoteFrame() {} | |
| 23 | |
| 24 void setBounds(const IntRect& bounds); | |
| 25 | |
| 26 private: | |
| 27 // ViewObserver methods: | |
| 28 void OnViewDestroyed(mojo::View* view) override; | |
| 29 | |
| 30 mojo::View* m_view; | |
| 31 }; | |
| 32 | |
| 33 } // namespace blink | |
| 34 | |
| 35 #endif // RemoteFrame_h | |
| OLD | NEW |