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

Unified Diff: mojo/services/window_manager/window_manager_impl.h

Issue 765753003: Move window_manager service implementation to //services (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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/services/window_manager/window_manager_impl.h
diff --git a/mojo/services/window_manager/window_manager_impl.h b/mojo/services/window_manager/window_manager_impl.h
deleted file mode 100644
index 1bbe8442a37964fd6f399b7dcc67d6b6be9cd349..0000000000000000000000000000000000000000
--- a/mojo/services/window_manager/window_manager_impl.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_
-#define MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_
-
-#include "base/basictypes.h"
-#include "base/logging.h"
-#include "mojo/public/cpp/bindings/binding.h"
-#include "mojo/public/cpp/bindings/error_handler.h"
-#include "mojo/services/public/cpp/view_manager/types.h"
-#include "mojo/services/public/interfaces/window_manager/window_manager.mojom.h"
-
-namespace mojo {
-
-class WindowManagerApp;
-
-class WindowManagerImpl : public WindowManager, public ErrorHandler {
- public:
- // See description above |from_vm_| for details on |from_vm|.
- // WindowManagerImpl deletes itself on connection errors. WindowManagerApp
- // also deletes WindowManagerImpl in its destructor.
- WindowManagerImpl(WindowManagerApp* window_manager, bool from_vm);
- ~WindowManagerImpl() override;
-
- void Bind(ScopedMessagePipeHandle window_manager_pipe);
-
- void NotifyViewFocused(Id new_focused_id, Id old_focused_id);
- void NotifyWindowActivated(Id new_active_id, Id old_active_id);
-
- private:
- WindowManagerClient* client() {
- DCHECK(from_vm_);
- return binding_.client();
- }
-
- // WindowManager:
- void Embed(const String& url,
- InterfaceRequest<ServiceProvider> service_provider) override;
- void SetCapture(uint32_t view_id,
- const Callback<void(bool)>& callback) override;
- void FocusWindow(uint32_t view_id,
- const Callback<void(bool)>& callback) override;
- void ActivateWindow(uint32_t view_id,
- const Callback<void(bool)>& callback) override;
-
- // ErrorHandler:
- void OnConnectionError() override;
-
- WindowManagerApp* window_manager_;
-
- // Whether this connection originated from the ViewManager. Connections that
- // originate from the view manager are expected to have clients. Connections
- // that don't originate from the view manager do not have clients.
- const bool from_vm_;
-
- Binding<WindowManager> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl);
-};
-
-} // namespace mojo
-
-#endif // MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_
« no previous file with comments | « mojo/services/window_manager/window_manager_delegate.h ('k') | mojo/services/window_manager/window_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698