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

Side by Side Diff: mash/wm/non_client_frame_controller.h

Issue 1994763002: Wires up WorkspaceLayoutManager in mash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: data deps Created 4 years, 7 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
« no previous file with comments | « mash/wm/frame/non_client_frame_view_mash.cc ('k') | mash/wm/non_client_frame_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_ 5 #ifndef MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_
6 #define MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_ 6 #define MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 16 matching lines...) Expand all
27 27
28 namespace mash { 28 namespace mash {
29 namespace wm { 29 namespace wm {
30 30
31 // Provides the non-client frame for mus Windows. 31 // Provides the non-client frame for mus Windows.
32 class NonClientFrameController : public views::WidgetDelegateView, 32 class NonClientFrameController : public views::WidgetDelegateView,
33 public mus::WindowObserver { 33 public mus::WindowObserver {
34 public: 34 public:
35 // NonClientFrameController deletes itself when |window| is destroyed. 35 // NonClientFrameController deletes itself when |window| is destroyed.
36 static void Create(shell::Connector* connector, 36 static void Create(shell::Connector* connector,
37 mus::Window* parent,
37 mus::Window* window, 38 mus::Window* window,
38 mus::WindowManagerClient* window_manager_client); 39 mus::WindowManagerClient* window_manager_client);
39 40
40 // Returns the preferred client area insets. 41 // Returns the preferred client area insets.
41 static gfx::Insets GetPreferredClientAreaInsets(); 42 static gfx::Insets GetPreferredClientAreaInsets();
42 43
43 // Returns the width needed to display the standard set of buttons on the 44 // Returns the width needed to display the standard set of buttons on the
44 // title bar. 45 // title bar.
45 static int GetMaxTitleBarButtonWidth(); 46 static int GetMaxTitleBarButtonWidth();
46 47
47 mus::Window* window() { return window_; } 48 mus::Window* window() { return window_; }
48 49
49 private: 50 private:
50 NonClientFrameController(shell::Connector* connector, 51 NonClientFrameController(shell::Connector* connector,
52 mus::Window* parent,
51 mus::Window* window, 53 mus::Window* window,
52 mus::WindowManagerClient* window_manager_client); 54 mus::WindowManagerClient* window_manager_client);
53 ~NonClientFrameController() override; 55 ~NonClientFrameController() override;
54 56
55 // views::WidgetDelegateView: 57 // views::WidgetDelegateView:
56 base::string16 GetWindowTitle() const override; 58 base::string16 GetWindowTitle() const override;
57 views::View* GetContentsView() override; 59 views::View* GetContentsView() override;
58 bool CanResize() const override; 60 bool CanResize() const override;
59 bool CanMaximize() const override; 61 bool CanMaximize() const override;
60 bool CanMinimize() const override; 62 bool CanMinimize() const override;
(...skipping 14 matching lines...) Expand all
75 // is null. 77 // is null.
76 mus::Window* window_; 78 mus::Window* window_;
77 79
78 DISALLOW_COPY_AND_ASSIGN(NonClientFrameController); 80 DISALLOW_COPY_AND_ASSIGN(NonClientFrameController);
79 }; 81 };
80 82
81 } // namespace wm 83 } // namespace wm
82 } // namespace mash 84 } // namespace mash
83 85
84 #endif // MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_ 86 #endif // MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_
OLDNEW
« no previous file with comments | « mash/wm/frame/non_client_frame_view_mash.cc ('k') | mash/wm/non_client_frame_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698