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

Side by Side Diff: mojo/services/window_manager/window_manager_impl.h

Issue 718473003: Add mojo::Binding<Interface> for more flexible pipe<->impl binding (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rename Binding::router() -> Binding::internal_router() Created 6 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ 5 #ifndef MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_
6 #define MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ 6 #define MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "mojo/services/public/cpp/view_manager/types.h" 9 #include "mojo/services/public/cpp/view_manager/types.h"
10 #include "mojo/services/public/interfaces/window_manager/window_manager.mojom.h" 10 #include "mojo/services/public/interfaces/window_manager/window_manager.mojom.h"
(...skipping 18 matching lines...) Expand all
29 // WindowManager: 29 // WindowManager:
30 void Embed(const String& url, 30 void Embed(const String& url,
31 InterfaceRequest<ServiceProvider> service_provider) override; 31 InterfaceRequest<ServiceProvider> service_provider) override;
32 void SetCapture(uint32_t view_id, 32 void SetCapture(uint32_t view_id,
33 const Callback<void(bool)>& callback) override; 33 const Callback<void(bool)>& callback) override;
34 void FocusWindow(uint32_t view_id, 34 void FocusWindow(uint32_t view_id,
35 const Callback<void(bool)>& callback) override; 35 const Callback<void(bool)>& callback) override;
36 void ActivateWindow(uint32_t view_id, 36 void ActivateWindow(uint32_t view_id,
37 const Callback<void(bool)>& callback) override; 37 const Callback<void(bool)>& callback) override;
38 38
39 // InterfaceImpl:
40 void OnConnectionEstablished() override;
41
42 WindowManagerApp* window_manager_; 39 WindowManagerApp* window_manager_;
43 40
44 // Whether this connection originated from the ViewManager. Connections that 41 // Whether this connection originated from the ViewManager. Connections that
45 // originate from the view manager are expected to have clients. Connections 42 // originate from the view manager are expected to have clients. Connections
46 // that don't originate from the view manager do not have clients. 43 // that don't originate from the view manager do not have clients.
47 const bool from_vm_; 44 const bool from_vm_;
48 45
49 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); 46 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl);
50 }; 47 };
51 48
52 } // namespace mojo 49 } // namespace mojo
53 50
54 #endif // MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ 51 #endif // MOJO_SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698