OLD | NEW |
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 EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ | 5 #ifndef EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ |
6 #define EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ | 6 #define EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "examples/wm_flow/wm/window_frame_host.mojom.h" | 9 #include "examples/wm_flow/wm/window_frame_host.mojom.h" |
10 #include "mojo/public/cpp/application/interface_factory.h" | 10 #include "mojo/public/cpp/application/interface_factory.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 // to any events targeted at it. | 29 // to any events targeted at it. |
30 class FrameController | 30 class FrameController |
31 : public examples::WindowFrameHost, | 31 : public examples::WindowFrameHost, |
32 public mojo::ViewObserver, | 32 public mojo::ViewObserver, |
33 public mojo::InterfaceFactory<examples::WindowFrameHost> { | 33 public mojo::InterfaceFactory<examples::WindowFrameHost> { |
34 public: | 34 public: |
35 FrameController(const GURL& frame_app_url, | 35 FrameController(const GURL& frame_app_url, |
36 mojo::View* view, | 36 mojo::View* view, |
37 mojo::View** app_view, | 37 mojo::View** app_view, |
38 window_manager::WindowManagerApp* window_manager_app); | 38 window_manager::WindowManagerApp* window_manager_app); |
39 virtual ~FrameController(); | 39 ~FrameController() override; |
40 | 40 |
41 // mojo::InterfaceFactory<examples::WindowFrameHost> implementation. | 41 // mojo::InterfaceFactory<examples::WindowFrameHost> implementation. |
42 void Create( | 42 void Create( |
43 mojo::ApplicationConnection* connection, | 43 mojo::ApplicationConnection* connection, |
44 mojo::InterfaceRequest<examples::WindowFrameHost> request) override; | 44 mojo::InterfaceRequest<examples::WindowFrameHost> request) override; |
45 | 45 |
46 // examples::WindowFrameHost | 46 // examples::WindowFrameHost |
47 void CloseWindow() override; | 47 void CloseWindow() override; |
48 void ToggleMaximize() override; | 48 void ToggleMaximize() override; |
49 void ActivateWindow() override; | 49 void ActivateWindow() override; |
(...skipping 11 matching lines...) Expand all Loading... |
61 gfx::Rect restored_bounds_; | 61 gfx::Rect restored_bounds_; |
62 window_manager::WindowManagerApp* window_manager_app_; | 62 window_manager::WindowManagerApp* window_manager_app_; |
63 mojo::ServiceProviderImpl viewer_services_impl_; | 63 mojo::ServiceProviderImpl viewer_services_impl_; |
64 | 64 |
65 mojo::Binding<examples::WindowFrameHost> binding_; | 65 mojo::Binding<examples::WindowFrameHost> binding_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(FrameController); | 67 DISALLOW_COPY_AND_ASSIGN(FrameController); |
68 }; | 68 }; |
69 | 69 |
70 #endif // EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ | 70 #endif // EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ |
OLD | NEW |