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

Side by Side Diff: services/window_manager/window_manager_app.h

Issue 858103002: Remove [Client=] annotation from ServiceProvider (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: rebase for trybots (no code changes from ps2) Created 5 years, 11 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 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 SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ 5 #ifndef SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_
6 #define SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ 6 #define SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 FocusController* focus_controller() { return focus_controller_.get(); } 85 FocusController* focus_controller() { return focus_controller_.get(); }
86 CaptureController* capture_controller() { return capture_controller_.get(); } 86 CaptureController* capture_controller() { return capture_controller_.get(); }
87 87
88 void InitFocus(scoped_ptr<FocusRules> rules); 88 void InitFocus(scoped_ptr<FocusRules> rules);
89 89
90 // WindowManagerImpl::Embed() forwards to this. If connected to ViewManager 90 // WindowManagerImpl::Embed() forwards to this. If connected to ViewManager
91 // then forwards to delegate, otherwise waits for connection to establish then 91 // then forwards to delegate, otherwise waits for connection to establish then
92 // forwards. 92 // forwards.
93 void Embed(const mojo::String& url, 93 void Embed(const mojo::String& url,
94 mojo::InterfaceRequest<mojo::ServiceProvider> service_provider); 94 mojo::InterfaceRequest<mojo::ServiceProvider> services,
95 mojo::ServiceProviderPtr exposed_services);
95 96
96 // Overridden from ApplicationDelegate: 97 // Overridden from ApplicationDelegate:
97 void Initialize(mojo::ApplicationImpl* impl) override; 98 void Initialize(mojo::ApplicationImpl* impl) override;
98 bool ConfigureIncomingConnection( 99 bool ConfigureIncomingConnection(
99 mojo::ApplicationConnection* connection) override; 100 mojo::ApplicationConnection* connection) override;
100 101
101 private: 102 private:
102 // TODO(sky): rename this. Connections is ambiguous. 103 // TODO(sky): rename this. Connections is ambiguous.
103 typedef std::set<WindowManagerImpl*> Connections; 104 typedef std::set<WindowManagerImpl*> Connections;
104 typedef std::set<mojo::Id> RegisteredViewIdSet; 105 typedef std::set<mojo::Id> RegisteredViewIdSet;
(...skipping 13 matching lines...) Expand all
118 119
119 // Recursively invokes Unregister() for |view| and all its descendants. 120 // Recursively invokes Unregister() for |view| and all its descendants.
120 void UnregisterSubtree(mojo::View* view); 121 void UnregisterSubtree(mojo::View* view);
121 122
122 // Deletes the ViewTarget associated with the hierarchy beneath |id|, 123 // Deletes the ViewTarget associated with the hierarchy beneath |id|,
123 // and removes from the registry. 124 // and removes from the registry.
124 void Unregister(mojo::View* view); 125 void Unregister(mojo::View* view);
125 126
126 // Overridden from ViewManagerDelegate: 127 // Overridden from ViewManagerDelegate:
127 void OnEmbed(mojo::View* root, 128 void OnEmbed(mojo::View* root,
128 mojo::ServiceProviderImpl* exported_services, 129 mojo::InterfaceRequest<mojo::ServiceProvider> services,
129 scoped_ptr<mojo::ServiceProvider> imported_services) override; 130 mojo::ServiceProviderPtr exposed_services) override;
130 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override; 131 void OnViewManagerDisconnected(mojo::ViewManager* view_manager) override;
131 132
132 // Overridden from ViewObserver: 133 // Overridden from ViewObserver:
133 void OnTreeChanged(const ViewObserver::TreeChangeParams& params) override; 134 void OnTreeChanged(const ViewObserver::TreeChangeParams& params) override;
134 void OnViewDestroying(mojo::View* view) override; 135 void OnViewDestroying(mojo::View* view) override;
135 136
136 // Overridden from ui::EventHandler: 137 // Overridden from ui::EventHandler:
137 void OnEvent(ui::Event* event) override; 138 void OnEvent(ui::Event* event) override;
138 139
139 // Overridden from mojo::FocusControllerObserver: 140 // Overridden from mojo::FocusControllerObserver:
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 scoped_ptr<ViewEventDispatcher> view_event_dispatcher_; 190 scoped_ptr<ViewEventDispatcher> view_event_dispatcher_;
190 191
191 scoped_ptr<mojo::Binding<WindowManagerInternal>> wm_internal_binding_; 192 scoped_ptr<mojo::Binding<WindowManagerInternal>> wm_internal_binding_;
192 193
193 DISALLOW_COPY_AND_ASSIGN(WindowManagerApp); 194 DISALLOW_COPY_AND_ASSIGN(WindowManagerApp);
194 }; 195 };
195 196
196 } // namespace window_manager 197 } // namespace window_manager
197 198
198 #endif // SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_ 199 #endif // SERVICES_WINDOW_MANAGER_WINDOW_MANAGER_APP_H_
OLDNEW
« no previous file with comments | « services/window_manager/window_manager_api_unittest.cc ('k') | services/window_manager/window_manager_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698