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

Unified Diff: mojo/examples/keyboard/keyboard.cc

Issue 460863002: Rename Node to View in the View Manager mojom & client lib. Service TBD. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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
« no previous file with comments | « mojo/examples/embedded_app/embedded_app.cc ('k') | mojo/examples/media_viewer/media_viewer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/examples/keyboard/keyboard.cc
diff --git a/mojo/examples/keyboard/keyboard.cc b/mojo/examples/keyboard/keyboard.cc
index ff6e68a50e832846e19f04557480955ffd19d75e..e033627610ef8d51aa831ba34184fc99b870d331 100644
--- a/mojo/examples/keyboard/keyboard.cc
+++ b/mojo/examples/keyboard/keyboard.cc
@@ -11,7 +11,7 @@
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/interface_factory_impl.h"
-#include "mojo/services/public/cpp/view_manager/node.h"
+#include "mojo/services/public/cpp/view_manager/view.h"
#include "mojo/services/public/cpp/view_manager/view_manager.h"
#include "mojo/services/public/cpp/view_manager/view_manager_client_factory.h"
#include "mojo/services/public/cpp/view_manager/view_manager_delegate.h"
@@ -35,7 +35,7 @@ class KeyboardServiceImpl : public InterfaceImpl<KeyboardService> {
virtual ~KeyboardServiceImpl() {}
// KeyboardService:
- virtual void SetTarget(uint32_t node_id) OVERRIDE;
+ virtual void SetTarget(uint32_t view_id) OVERRIDE;
private:
Keyboard* keyboard_;
@@ -73,7 +73,7 @@ class Keyboard : public ApplicationDelegate,
return true;
}
- void CreateWidget(Node* node) {
+ void CreateWidget(View* view) {
views::WidgetDelegateView* widget_delegate = new views::WidgetDelegateView;
widget_delegate->GetContentsView()->AddChildView(new KeyboardView(this));
widget_delegate->GetContentsView()->SetLayoutManager(new views::FillLayout);
@@ -81,16 +81,16 @@ class Keyboard : public ApplicationDelegate,
views::Widget* widget = new views::Widget;
views::Widget::InitParams params(
views::Widget::InitParams::TYPE_WINDOW_FRAMELESS);
- params.native_widget = new NativeWidgetViewManager(widget, node);
+ params.native_widget = new NativeWidgetViewManager(widget, view);
params.delegate = widget_delegate;
- params.bounds = gfx::Rect(node->bounds().width(), node->bounds().height());
+ params.bounds = gfx::Rect(view->bounds().width(), view->bounds().height());
widget->Init(params);
widget->Show();
}
// ViewManagerDelegate:
virtual void OnEmbed(ViewManager* view_manager,
- Node* root,
+ View* root,
ServiceProviderImpl* exported_services,
scoped_ptr<ServiceProvider> imported_services) OVERRIDE {
// TODO: deal with OnEmbed() being invoked multiple times.
@@ -132,8 +132,8 @@ KeyboardServiceImpl::KeyboardServiceImpl(Keyboard* keyboard)
keyboard_->set_keyboard_service(this);
}
-void KeyboardServiceImpl::SetTarget(uint32_t node_id) {
- keyboard_->set_target(node_id);
+void KeyboardServiceImpl::SetTarget(uint32_t view_id) {
+ keyboard_->set_target(view_id);
}
} // namespace examples
« no previous file with comments | « mojo/examples/embedded_app/embedded_app.cc ('k') | mojo/examples/media_viewer/media_viewer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698