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

Unified Diff: mojo/views/native_widget_view_manager.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/views/native_widget_view_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/views/native_widget_view_manager.cc
diff --git a/mojo/views/native_widget_view_manager.cc b/mojo/views/native_widget_view_manager.cc
index 3ff8619c71d2ac03c46ae006271dbdf4bd7b6d2b..1e036762d5940e329f8bdd1593a69e6cc1785a39 100644
--- a/mojo/views/native_widget_view_manager.cc
+++ b/mojo/views/native_widget_view_manager.cc
@@ -86,11 +86,11 @@ class MinimalInputEventFilter : public ui::internal::InputMethodDelegate,
} // namespace
NativeWidgetViewManager::NativeWidgetViewManager(
- views::internal::NativeWidgetDelegate* delegate, Node* node)
+ views::internal::NativeWidgetDelegate* delegate, View* view)
: NativeWidgetAura(delegate),
- node_(node) {
- node_->AddObserver(this);
- window_tree_host_.reset(new WindowTreeHostMojo(node_, this));
+ view_(view) {
+ view_->AddObserver(this);
+ window_tree_host_.reset(new WindowTreeHostMojo(view_, this));
window_tree_host_->InitHost();
ime_filter_.reset(
@@ -110,8 +110,8 @@ NativeWidgetViewManager::NativeWidgetViewManager(
}
NativeWidgetViewManager::~NativeWidgetViewManager() {
- if (node_)
- node_->RemoveObserver(this);
+ if (view_)
+ view_->RemoveObserver(this);
}
void NativeWidgetViewManager::InitNativeWidget(
@@ -125,24 +125,24 @@ void NativeWidgetViewManager::InitNativeWidget(
void NativeWidgetViewManager::CompositorContentsChanged(
const SkBitmap& bitmap) {
- if (node_)
- node_->SetContents(bitmap);
+ if (view_)
+ view_->SetContents(bitmap);
}
-void NativeWidgetViewManager::OnNodeDestroyed(Node* node) {
- DCHECK_EQ(node, node_);
- node->RemoveObserver(this);
- node_ = NULL;
+void NativeWidgetViewManager::OnViewDestroyed(View* view) {
+ DCHECK_EQ(view, view_);
+ view->RemoveObserver(this);
+ view_ = NULL;
window_tree_host_.reset();
}
-void NativeWidgetViewManager::OnNodeBoundsChanged(Node* node,
+void NativeWidgetViewManager::OnViewBoundsChanged(View* view,
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) {
- GetWidget()->SetBounds(gfx::Rect(node->bounds().size()));
+ GetWidget()->SetBounds(gfx::Rect(view->bounds().size()));
}
-void NativeWidgetViewManager::OnNodeInputEvent(Node* node,
+void NativeWidgetViewManager::OnViewInputEvent(View* view,
const EventPtr& event) {
scoped_ptr<ui::Event> ui_event(event.To<scoped_ptr<ui::Event> >());
if (ui_event)
« no previous file with comments | « mojo/views/native_widget_view_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698