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

Side by Side Diff: mojo/examples/wm_flow/wm/frame_controller.h

Issue 549883003: Window controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 3 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698