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

Unified Diff: mojo/examples/html_viewer/html_document_view.h

Issue 383123006: Preliminary interactive layout of window manager's demo_launcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Resize KeyboardManager, sync Created 6 years, 5 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
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_;
« no previous file with comments | « no previous file | mojo/examples/html_viewer/html_document_view.cc » ('j') | mojo/examples/html_viewer/html_document_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698