OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MOJO_EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ | |
6 #define MOJO_EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ | |
7 | |
8 #include "ui/gfx/geometry/rect.h" | |
9 | |
10 namespace mojo { | |
11 class NativeWidgetViewManager; | |
12 class View; | |
13 } | |
14 | |
15 namespace views { | |
16 class View; | |
17 class Widget; | |
18 } | |
19 | |
20 // FrameController encapsulates the window manager's frame additions to a window | |
21 // created by an application. It renders the content of the frame and responds | |
22 // to any events targeted at it. | |
23 class FrameController { | |
24 public: | |
25 FrameController(mojo::View* view, mojo::View** app_view); | |
26 virtual ~FrameController(); | |
sky
2014/09/11 19:32:22
You never delete instances of this.
| |
27 | |
28 void CloseWindow(); | |
29 void ToggleMaximize(); | |
30 | |
31 private: | |
32 class LayoutManager; | |
33 friend class LayoutManager; | |
34 | |
35 mojo::View* view_; | |
36 mojo::View* app_view_; | |
37 views::View* frame_view_; | |
38 LayoutManager* frame_view_layout_manager_; | |
39 views::Widget* widget_; | |
40 bool maximized_; | |
41 gfx::Rect restored_bounds_; | |
42 | |
43 DISALLOW_COPY_AND_ASSIGN(FrameController); | |
44 }; | |
45 | |
46 #endif // MOJO_EXAMPLES_WM_FLOW_WM_FRAME_CONTROLLER_H_ | |
OLD | NEW |