Index: mojo/examples/html_viewer/html_document_view.h |
diff --git a/mojo/examples/html_viewer/html_document_view.h b/mojo/examples/html_viewer/html_document_view.h |
index 8c324a5ee2c3806067b5e0bd34ed406be856932b..a45f7a5ead21a5ae8680e8f862c068b07fc18125 100644 |
--- a/mojo/examples/html_viewer/html_document_view.h |
+++ b/mojo/examples/html_viewer/html_document_view.h |
@@ -9,6 +9,7 @@ |
#include "base/memory/weak_ptr.h" |
#include "mojo/public/cpp/application/lazy_interface_ptr.h" |
#include "mojo/public/interfaces/service_provider/service_provider.mojom.h" |
+#include "mojo/services/public/cpp/view_manager/node_observer.h" |
#include "mojo/services/public/cpp/view_manager/view_observer.h" |
#include "mojo/services/public/interfaces/navigation/navigation.mojom.h" |
#include "mojo/services/public/interfaces/network/url_loader.mojom.h" |
@@ -28,7 +29,8 @@ namespace examples { |
// A view for a single HTML document. |
class HTMLDocumentView : public blink::WebViewClient, |
public blink::WebFrameClient, |
- public view_manager::ViewObserver { |
+ public view_manager::ViewObserver, |
+ public view_manager::NodeObserver { |
public: |
HTMLDocumentView(ServiceProvider* service_provider, |
view_manager::ViewManager* view_manager); |
@@ -65,6 +67,11 @@ class HTMLDocumentView : public blink::WebViewClient, |
virtual void OnViewInputEvent(view_manager::View* view, |
const EventPtr& event) OVERRIDE; |
+ // NodeObserver methods: |
+ virtual void OnNodeBoundsChanged(view_manager::Node* node, |
+ const gfx::Rect&, |
sky
2014/07/14 19:15:27
Google C++ style is to always have names for argum
hansmuller
2014/07/14 22:16:42
Done.
|
+ const gfx::Rect&) OVERRIDE; |
+ |
void Repaint(); |
view_manager::ViewManager* view_manager_; |