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

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

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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/example/window_type_launcher/main.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"
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "components/mus/public/cpp/window_observer.h" 12 #include "components/mus/public/cpp/window_observer.h"
13 #include "ui/views/widget/widget_delegate.h" 13 #include "ui/views/widget/widget_delegate.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 class Insets; 16 class Insets;
17 } 17 }
18 18
19 namespace mojo { 19 namespace mojo {
20 namespace shell {
21 namespace mojom {
20 class Shell; 22 class Shell;
21 } 23 }
24 }
25 }
22 26
23 namespace mus { 27 namespace mus {
24 class Window; 28 class Window;
25 class WindowManagerClient; 29 class WindowManagerClient;
26 } 30 }
27 31
28 namespace mash { 32 namespace mash {
29 namespace wm { 33 namespace wm {
30 34
31 // Provides the non-client frame for mus Windows. 35 // Provides the non-client frame for mus Windows.
32 class NonClientFrameController : public views::WidgetDelegateView, 36 class NonClientFrameController : public views::WidgetDelegateView,
33 public mus::WindowObserver { 37 public mus::WindowObserver {
34 public: 38 public:
35 // NonClientFrameController deletes itself when |window| is destroyed. 39 // NonClientFrameController deletes itself when |window| is destroyed.
36 NonClientFrameController(mojo::Shell* shell, 40 NonClientFrameController(mojo::shell::mojom::Shell* shell,
37 mus::Window* window, 41 mus::Window* window,
38 mus::WindowManagerClient* window_manager_client); 42 mus::WindowManagerClient* window_manager_client);
39 43
40 // Returns the preferred client area insets. 44 // Returns the preferred client area insets.
41 static gfx::Insets GetPreferredClientAreaInsets(); 45 static gfx::Insets GetPreferredClientAreaInsets();
42 46
43 // Returns the width needed to display the standard set of buttons on the 47 // Returns the width needed to display the standard set of buttons on the
44 // title bar. 48 // title bar.
45 static int GetMaxTitleBarButtonWidth(); 49 static int GetMaxTitleBarButtonWidth();
46 50
(...skipping 24 matching lines...) Expand all
71 // is null. 75 // is null.
72 mus::Window* window_; 76 mus::Window* window_;
73 77
74 DISALLOW_COPY_AND_ASSIGN(NonClientFrameController); 78 DISALLOW_COPY_AND_ASSIGN(NonClientFrameController);
75 }; 79 };
76 80
77 } // namespace wm 81 } // namespace wm
78 } // namespace mash 82 } // namespace mash
79 83
80 #endif // MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_ 84 #endif // MASH_WM_NON_CLIENT_FRAME_CONTROLLER_H_
OLDNEW
« no previous file with comments | « mash/example/window_type_launcher/main.cc ('k') | mash/wm/non_client_frame_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698