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

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

Issue 418983002: Nukes view_manager namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve merge 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
« 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 f4f22b74df93e25e44cee4786881f383bcb62234..13eb4c7d6d8faabd02c77fd6f7677a2c64c8da67 100644
--- a/mojo/examples/keyboard/keyboard.cc
+++ b/mojo/examples/keyboard/keyboard.cc
@@ -26,8 +26,6 @@
#include "ui/views/widget/widget_delegate.h"
#include "url/gurl.h"
-using mojo::view_manager::Id;
-
namespace mojo {
namespace examples {
@@ -49,7 +47,7 @@ class KeyboardServiceImpl : public InterfaceImpl<KeyboardService> {
class Keyboard
: public ApplicationDelegate,
- public view_manager::ViewManagerDelegate,
+ public ViewManagerDelegate,
public KeyboardDelegate,
public InterfaceFactoryWithContext<KeyboardServiceImpl, Keyboard> {
public:
@@ -79,7 +77,7 @@ class Keyboard
return true;
}
- void CreateWidget(view_manager::Node* node) {
+ void CreateWidget(Node* node) {
views::WidgetDelegateView* widget_delegate = new views::WidgetDelegateView;
widget_delegate->GetContentsView()->AddChildView(new KeyboardView(this));
widget_delegate->GetContentsView()->SetLayoutManager(new views::FillLayout);
@@ -94,16 +92,15 @@ class Keyboard
widget->Show();
}
- // view_manager::ViewManagerDelegate:
- virtual void OnRootAdded(view_manager::ViewManager* view_manager,
- view_manager::Node* root) OVERRIDE {
+ // ViewManagerDelegate:
+ virtual void OnRootAdded(ViewManager* view_manager, Node* root) OVERRIDE {
// TODO: deal with OnRootAdded() being invoked multiple times.
view_manager_ = view_manager;
- root->SetActiveView(view_manager::View::Create(view_manager));
+ root->SetActiveView(View::Create(view_manager));
CreateWidget(root);
}
virtual void OnViewManagerDisconnected(
- view_manager::ViewManager* view_manager) OVERRIDE {
+ ViewManager* view_manager) OVERRIDE {
DCHECK_EQ(view_manager_, view_manager);
view_manager_ = NULL;
base::MessageLoop::current()->Quit();
@@ -119,8 +116,8 @@ class Keyboard
scoped_ptr<ViewsInit> views_init_;
- view_manager::ViewManager* view_manager_;
- view_manager::ViewManagerClientFactory view_manager_client_factory_;
+ ViewManager* view_manager_;
+ ViewManagerClientFactory view_manager_client_factory_;
KeyboardServiceImpl* keyboard_service_;
« 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