| 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 "mojo/services/view_manager/public/cpp/view_observer.h" | 9 #include "mojo/services/view_manager/public/cpp/view_observer.h" |
| 10 #include "services/window_manager/focus_controller.h" | 10 #include "services/window_manager/focus_controller.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 mojo::View* view, | 34 mojo::View* view, |
| 35 mojo::View** app_view, | 35 mojo::View** app_view, |
| 36 window_manager::WindowManagerApp* window_manager_app); | 36 window_manager::WindowManagerApp* window_manager_app); |
| 37 virtual ~FrameController(); | 37 virtual ~FrameController(); |
| 38 | 38 |
| 39 void CloseWindow(); | 39 void CloseWindow(); |
| 40 void ToggleMaximize(); | 40 void ToggleMaximize(); |
| 41 | 41 |
| 42 void ActivateWindow(); | 42 void ActivateWindow(); |
| 43 | 43 |
| 44 void SetCapture(bool frame_has_capture); |
| 45 |
| 44 private: | 46 private: |
| 45 class LayoutManager; | 47 class LayoutManager; |
| 46 friend class LayoutManager; | 48 friend class LayoutManager; |
| 47 class FrameEventHandler; | 49 class FrameEventHandler; |
| 48 | 50 |
| 49 virtual void OnViewDestroyed(mojo::View* view) override; | 51 virtual void OnViewDestroyed(mojo::View* view) override; |
| 50 | 52 |
| 51 mojo::View* view_; | 53 mojo::View* view_; |
| 52 mojo::View* app_view_; | 54 mojo::View* app_view_; |
| 53 views::View* frame_view_; | 55 views::View* frame_view_; |
| 54 LayoutManager* frame_view_layout_manager_; | 56 LayoutManager* frame_view_layout_manager_; |
| 55 views::Widget* widget_; | 57 views::Widget* widget_; |
| 56 bool maximized_; | 58 bool maximized_; |
| 57 gfx::Rect restored_bounds_; | 59 gfx::Rect restored_bounds_; |
| 58 window_manager::WindowManagerApp* window_manager_app_; | 60 window_manager::WindowManagerApp* window_manager_app_; |
| 59 scoped_ptr<FrameEventHandler> frame_event_handler_; | 61 scoped_ptr<FrameEventHandler> frame_event_handler_; |
| 60 | 62 |
| 61 DISALLOW_COPY_AND_ASSIGN(FrameController); | 63 DISALLOW_COPY_AND_ASSIGN(FrameController); |
| 62 }; | 64 }; |
| 63 | 65 |
| 64 #endif // EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ | 66 #endif // EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ |
| OLD | NEW |