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

Unified Diff: mojo/services/view_manager/window_manager_client_impl.h

Issue 636363002: Splits window manager like methods into ViewManagerServiceDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 6 years, 2 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
Index: mojo/services/view_manager/window_manager_client_impl.h
diff --git a/mojo/services/view_manager/window_manager_client_impl.h b/mojo/services/view_manager/window_manager_client_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..b25aafe71e47845fbdf139885a6cdf1acae7988a
--- /dev/null
+++ b/mojo/services/view_manager/window_manager_client_impl.h
@@ -0,0 +1,55 @@
+// 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_VIEW_MANAGER_WINDOW_MANAGER_CLIENT_IMPL_H_
+#define MOJO_SERVICES_VIEW_MANAGER_WINDOW_MANAGER_CLIENT_IMPL_H_
+
+#include <set>
+#include <string>
+#include <vector>
+
+#include "base/basictypes.h"
+#include "mojo/services/public/interfaces/window_manager/window_manager.mojom.h"
+#include "mojo/services/view_manager/ids.h"
+#include "mojo/services/view_manager/view_manager_export.h"
+
+namespace mojo {
+namespace service {
+
+class ConnectionManager;
+
+#if defined(OS_WIN)
+// Equivalent of NON_EXPORTED_BASE which does not work with the template snafu
+// below.
+#pragma warning(push)
+#pragma warning(disable : 4275)
+#endif
+
+class MOJO_VIEW_MANAGER_EXPORT WindowManagerClientImpl
+ : public InterfaceImpl<WindowManagerClient> {
+ public:
+ explicit WindowManagerClientImpl(ConnectionManager* connection_manager);
+ virtual ~WindowManagerClientImpl();
+
+ // WindowManagerClient:
+ virtual void DispatchInputEventToView(Id transport_view_id,
+ EventPtr event) override;
+
+ // InterfaceImp overrides:
+ virtual void OnConnectionError() override;
+
+ private:
+ ConnectionManager* connection_manager_;
+
+ DISALLOW_COPY_AND_ASSIGN(WindowManagerClientImpl);
+};
+
+#if defined(OS_WIN)
+#pragma warning(pop)
+#endif
+
+} // namespace service
+} // namespace mojo
+
+#endif // MOJO_SERVICES_VIEW_MANAGER_WINDOW_MANAGER_CLIENT_IMPL_H_
« no previous file with comments | « mojo/services/view_manager/view_manager_unittest.cc ('k') | mojo/services/view_manager/window_manager_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698