| Index: mojo/services/window_manager/window_manager_app.h
|
| diff --git a/mojo/services/window_manager/window_manager_app.h b/mojo/services/window_manager/window_manager_app.h
|
| index 5b7ccb52812f68770402204a86b7e0eea5490768..b139a26127ff43babe4ad17af65dc37850182e0c 100644
|
| --- a/mojo/services/window_manager/window_manager_app.h
|
| +++ b/mojo/services/window_manager/window_manager_app.h
|
| @@ -16,7 +16,7 @@
|
| #include "mojo/services/public/cpp/view_manager/view_manager_client_factory.h"
|
| #include "mojo/services/public/cpp/view_manager/view_manager_delegate.h"
|
| #include "mojo/services/public/cpp/view_manager/view_observer.h"
|
| -#include "mojo/services/public/cpp/view_manager/window_manager_delegate.h"
|
| +#include "mojo/services/window_manager/view_manager_service_delegate_impl.h"
|
| #include "mojo/services/window_manager/window_manager_service_impl.h"
|
| #include "ui/aura/client/focus_change_observer.h"
|
| #include "ui/events/event_handler.h"
|
| @@ -39,8 +39,9 @@ namespace mojo {
|
|
|
| class AuraInit;
|
| class DummyDelegate;
|
| +class ViewManagerServiceDelegateClient;
|
| +class WindowManagerDelegate;
|
| class WindowManagerServiceImpl;
|
| -class WindowTreeHostMojo;
|
|
|
| // Implements core window manager functionality that could conceivably be shared
|
| // across multiple window managers implementing superficially different user
|
| @@ -56,7 +57,6 @@ class WindowTreeHostMojo;
|
| class WindowManagerApp
|
| : public ApplicationDelegate,
|
| public ViewManagerDelegate,
|
| - public WindowManagerDelegate,
|
| public ViewObserver,
|
| public ui::EventHandler,
|
| public aura::client::FocusChangeObserver,
|
| @@ -82,10 +82,19 @@ class WindowManagerApp
|
|
|
| // A client of this object will use this accessor to gain access to the
|
| // aura::Window hierarchy and attach event handlers.
|
| - aura::WindowTreeHost* host() { return window_tree_host_.get(); }
|
| + WindowTreeHostMojo* host() { return window_tree_host_.get(); }
|
| +
|
| + WindowManagerDelegate* window_manager_delegate() {
|
| + return window_manager_delegate_;
|
| + }
|
|
|
| void InitFocus(wm::FocusRules* rules);
|
|
|
| + void set_view_manager_service_client_delegate(
|
| + ViewManagerServiceDelegateClient* client) {
|
| + view_manager_service_delegate_client_ = client;
|
| + }
|
| +
|
| // Overridden from ApplicationDelegate:
|
| virtual void Initialize(ApplicationImpl* impl) override;
|
| virtual bool ConfigureIncomingConnection(
|
| @@ -102,12 +111,6 @@ class WindowManagerApp
|
| scoped_ptr<ServiceProvider> imported_services) override;
|
| virtual void OnViewManagerDisconnected(ViewManager* view_manager) override;
|
|
|
| - // Overridden from WindowManagerDelegate:
|
| - virtual void Embed(
|
| - const String& url,
|
| - InterfaceRequest<ServiceProvider> service_provider) override;
|
| - virtual void DispatchEvent(EventPtr event) override;
|
| -
|
| // Overridden from ViewObserver:
|
| virtual void OnTreeChanged(
|
| const ViewObserver::TreeChangeParams& params) override;
|
| @@ -143,8 +146,12 @@ class WindowManagerApp
|
| InterfaceFactoryImplWithContext<WindowManagerServiceImpl, WindowManagerApp>
|
| window_manager_service_factory_;
|
|
|
| + InterfaceFactoryImplWithContext<ViewManagerServiceDelegateImpl,
|
| + WindowManagerApp>
|
| + view_manager_service_delegate_factory_;
|
| +
|
| ViewManagerDelegate* wrapped_view_manager_delegate_;
|
| - WindowManagerDelegate* wrapped_window_manager_delegate_;
|
| + WindowManagerDelegate* window_manager_delegate_;
|
|
|
| ViewManager* view_manager_;
|
| scoped_ptr<ViewManagerClientFactory> view_manager_client_factory_;
|
| @@ -162,6 +169,8 @@ class WindowManagerApp
|
|
|
| scoped_ptr<DummyDelegate> dummy_delegate_;
|
|
|
| + ViewManagerServiceDelegateClient* view_manager_service_delegate_client_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(WindowManagerApp);
|
| };
|
|
|
|
|