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

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

Issue 1567623003: Adds remainder of support for multiple roots to WS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 4 years, 11 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 | « components/mus/ws/window_tree_unittest.cc ('k') | mash/wm/window_manager_impl.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_WINDOW_MANAGER_IMPL_H_ 5 #ifndef MASH_WM_WINDOW_MANAGER_IMPL_H_
6 #define MASH_WM_WINDOW_MANAGER_IMPL_H_ 6 #define MASH_WM_WINDOW_MANAGER_IMPL_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 public: 27 public:
28 WindowManagerImpl(); 28 WindowManagerImpl();
29 ~WindowManagerImpl() override; 29 ~WindowManagerImpl() override;
30 30
31 void Initialize(WindowManagerApplication* state); 31 void Initialize(WindowManagerApplication* state);
32 32
33 private: 33 private:
34 gfx::Rect CalculateDefaultBounds(mus::Window* window) const; 34 gfx::Rect CalculateDefaultBounds(mus::Window* window) const;
35 gfx::Rect GetMaximizedWindowBounds() const; 35 gfx::Rect GetMaximizedWindowBounds() const;
36 36
37 mus::Window* NewTopLevelWindow(
38 std::map<std::string, std::vector<uint8_t>>* properties,
39 mus::mojom::WindowTreeClientPtr client);
40
37 // mus::WindowObserver: 41 // mus::WindowObserver:
38 void OnTreeChanging(const TreeChangeParams& params) override; 42 void OnTreeChanging(const TreeChangeParams& params) override;
39 void OnWindowEmbeddedAppDisconnected(mus::Window* window) override; 43 void OnWindowEmbeddedAppDisconnected(mus::Window* window) override;
40 44
41 // mus::mojom::WindowManager: 45 // mus::mojom::WindowManager:
42 void OpenWindow(mus::mojom::WindowTreeClientPtr client, 46 void OpenWindow(mus::mojom::WindowTreeClientPtr client,
43 mojo::Map<mojo::String, mojo::Array<uint8_t>> 47 mojo::Map<mojo::String, mojo::Array<uint8_t>>
44 transport_properties) override; 48 transport_properties) override;
45 void GetConfig(const GetConfigCallback& callback) override; 49 void GetConfig(const GetConfigCallback& callback) override;
46 50
47 // WindowManagerDelegate: 51 // WindowManagerDelegate:
48 bool OnWmSetBounds(mus::Window* window, gfx::Rect* bounds) override; 52 bool OnWmSetBounds(mus::Window* window, gfx::Rect* bounds) override;
49 bool OnWmSetProperty(mus::Window* window, 53 bool OnWmSetProperty(mus::Window* window,
50 const std::string& name, 54 const std::string& name,
51 scoped_ptr<std::vector<uint8_t>>* new_data) override; 55 scoped_ptr<std::vector<uint8_t>>* new_data) override;
56 mus::Window* OnWmCreateTopLevelWindow(
57 std::map<std::string, std::vector<uint8_t>>* properties) override;
52 58
53 WindowManagerApplication* state_; 59 WindowManagerApplication* state_;
54 60
55 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); 61 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl);
56 }; 62 };
57 63
58 } // namespace wm 64 } // namespace wm
59 } // namespace mash 65 } // namespace mash
60 66
61 #endif // MASH_WM_WINDOW_MANAGER_IMPL_H_ 67 #endif // MASH_WM_WINDOW_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_unittest.cc ('k') | mash/wm/window_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698