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

Unified Diff: mojo/services/window_manager/window_manager_service_impl.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/services/window_manager/window_manager_service_impl.h ('k') | mojo/shell/view_manager_loader.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/window_manager/window_manager_service_impl.cc
diff --git a/mojo/services/window_manager/window_manager_service_impl.cc b/mojo/services/window_manager/window_manager_service_impl.cc
index ef1ff6483bbe6593129ce66c79949ebcbc4f0339..408bb580f9f9ed1988597147b9537371f92c0939 100644
--- a/mojo/services/window_manager/window_manager_service_impl.cc
+++ b/mojo/services/window_manager/window_manager_service_impl.cc
@@ -25,15 +25,13 @@ void WindowManagerServiceImpl::NotifyReady() {
client()->OnWindowManagerReady();
}
-void WindowManagerServiceImpl::NotifyNodeFocused(
- view_manager::Id new_focused_id,
- view_manager::Id old_focused_id) {
+void WindowManagerServiceImpl::NotifyNodeFocused(Id new_focused_id,
+ Id old_focused_id) {
client()->OnFocusChanged(old_focused_id, new_focused_id);
}
-void WindowManagerServiceImpl::NotifyWindowActivated(
- view_manager::Id new_active_id,
- view_manager::Id old_active_id) {
+void WindowManagerServiceImpl::NotifyWindowActivated(Id new_active_id,
+ Id old_active_id) {
client()->OnActiveWindowChanged(old_active_id, new_active_id);
}
@@ -41,10 +39,10 @@ void WindowManagerServiceImpl::NotifyWindowActivated(
// WindowManagerServiceImpl, WindowManager implementation:
void WindowManagerServiceImpl::OpenWindow(
- const Callback<void(view_manager::Id)>& callback) {
+ const Callback<void(Id)>& callback) {
bool success = window_manager_->IsReady();
if (success) {
- view_manager::Id id = window_manager_->OpenWindow();
+ Id id = window_manager_->OpenWindow();
callback.Run(id);
} else {
// TODO(beng): perhaps should take an error code for this.
@@ -54,10 +52,10 @@ void WindowManagerServiceImpl::OpenWindow(
void WindowManagerServiceImpl::OpenWindowWithURL(
const String& url,
- const Callback<void(view_manager::Id)>& callback) {
+ const Callback<void(Id)>& callback) {
bool success = window_manager_->IsReady();
if (success) {
- view_manager::Id id = window_manager_->OpenWindowWithURL(url);
+ Id id = window_manager_->OpenWindowWithURL(url);
callback.Run(id);
} else {
// TODO(beng): perhaps should take an error code for this.
@@ -66,7 +64,7 @@ void WindowManagerServiceImpl::OpenWindowWithURL(
}
void WindowManagerServiceImpl::SetCapture(
- view_manager::Id node,
+ Id node,
const Callback<void(bool)>& callback) {
bool success = window_manager_->IsReady();
if (success)
@@ -75,7 +73,7 @@ void WindowManagerServiceImpl::SetCapture(
}
void WindowManagerServiceImpl::FocusWindow(
- view_manager::Id node,
+ Id node,
const Callback<void(bool)>& callback) {
bool success = window_manager_->IsReady();
if (success)
@@ -84,7 +82,7 @@ void WindowManagerServiceImpl::FocusWindow(
}
void WindowManagerServiceImpl::ActivateWindow(
- view_manager::Id node,
+ Id node,
const Callback<void(bool)>& callback) {
bool success = window_manager_->IsReady();
if (success)
« no previous file with comments | « mojo/services/window_manager/window_manager_service_impl.h ('k') | mojo/shell/view_manager_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698