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

Side by Side Diff: mash/wm/window_manager.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/window_layout.cc ('k') | mash/wm/window_manager.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_H_ 5 #ifndef MASH_WM_WINDOW_MANAGER_H_
6 #define MASH_WM_WINDOW_MANAGER_H_ 6 #define MASH_WM_WINDOW_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 20 matching lines...) Expand all
31 WindowManager(); 31 WindowManager();
32 ~WindowManager() override; 32 ~WindowManager() override;
33 33
34 void Initialize(RootWindowController* root_controller, 34 void Initialize(RootWindowController* root_controller,
35 session::mojom::Session* session); 35 session::mojom::Session* session);
36 36
37 mus::WindowManagerClient* window_manager_client() { 37 mus::WindowManagerClient* window_manager_client() {
38 return window_manager_client_; 38 return window_manager_client_;
39 } 39 }
40 40
41 // Creates a new top level window.
42 mus::Window* NewTopLevelWindow(
43 std::map<std::string, std::vector<uint8_t>>* properties);
44
41 private: 45 private:
42 gfx::Rect CalculateDefaultBounds(mus::Window* window) const; 46 gfx::Rect CalculateDefaultBounds(mus::Window* window) const;
43 gfx::Rect GetMaximizedWindowBounds() const; 47 gfx::Rect GetMaximizedWindowBounds() const;
44 48
45 mus::Window* NewTopLevelWindow(
46 std::map<std::string, std::vector<uint8_t>>* properties);
47
48 // mus::WindowObserver: 49 // mus::WindowObserver:
49 void OnTreeChanging(const TreeChangeParams& params) override; 50 void OnTreeChanging(const TreeChangeParams& params) override;
50 51
51 // WindowManagerDelegate: 52 // WindowManagerDelegate:
52 void SetWindowManagerClient(mus::WindowManagerClient* client) override; 53 void SetWindowManagerClient(mus::WindowManagerClient* client) override;
53 bool OnWmSetBounds(mus::Window* window, gfx::Rect* bounds) override; 54 bool OnWmSetBounds(mus::Window* window, gfx::Rect* bounds) override;
54 bool OnWmSetProperty( 55 bool OnWmSetProperty(
55 mus::Window* window, 56 mus::Window* window,
56 const std::string& name, 57 const std::string& name,
57 std::unique_ptr<std::vector<uint8_t>>* new_data) override; 58 std::unique_ptr<std::vector<uint8_t>>* new_data) override;
(...skipping 10 matching lines...) Expand all
68 69
69 mojo::Binding<session::mojom::ScreenlockStateListener> binding_; 70 mojo::Binding<session::mojom::ScreenlockStateListener> binding_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(WindowManager); 72 DISALLOW_COPY_AND_ASSIGN(WindowManager);
72 }; 73 };
73 74
74 } // namespace wm 75 } // namespace wm
75 } // namespace mash 76 } // namespace mash
76 77
77 #endif // MASH_WM_WINDOW_MANAGER_H_ 78 #endif // MASH_WM_WINDOW_MANAGER_H_
OLDNEW
« no previous file with comments | « mash/wm/window_layout.cc ('k') | mash/wm/window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698