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

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

Issue 1954933002: Initial cut of ash/wm/common classes for mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk 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/bridge/wm_window_mus.cc ('k') | mash/wm/property_util.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_PROPERTY_UTIL_H_ 5 #ifndef MASH_WM_PROPERTY_UTIL_H_
6 #define MASH_WM_PROPERTY_UTIL_H_ 6 #define MASH_WM_PROPERTY_UTIL_H_
7 7
8 #include "components/mus/public/cpp/window.h" 8 #include "components/mus/public/cpp/window.h"
9 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" 9 #include "components/mus/public/interfaces/window_manager_constants.mojom.h"
10 #include "mash/wm/public/interfaces/ash_window_type.mojom.h" 10 #include "mash/wm/public/interfaces/ash_window_type.mojom.h"
11 #include "mash/wm/public/interfaces/container.mojom.h" 11 #include "mash/wm/public/interfaces/container.mojom.h"
12 #include "ui/wm/public/window_types.h"
12 13
13 namespace gfx { 14 namespace gfx {
14 class Rect; 15 class Rect;
15 class Size; 16 class Size;
16 } 17 }
17 18
18 namespace mus { 19 namespace mus {
19 class Window; 20 class Window;
20 } 21 }
21 22
(...skipping 23 matching lines...) Expand all
45 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds); 46 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds);
46 gfx::Rect GetRestoreBounds(const mus::Window* window); 47 gfx::Rect GetRestoreBounds(const mus::Window* window);
47 48
48 void SetShadow(mus::Window* window, Shadow* shadow); 49 void SetShadow(mus::Window* window, Shadow* shadow);
49 Shadow* GetShadow(const mus::Window* window); 50 Shadow* GetShadow(const mus::Window* window);
50 51
51 mus::mojom::WindowType GetWindowType(const mus::Window* window); 52 mus::mojom::WindowType GetWindowType(const mus::Window* window);
52 mus::mojom::WindowType GetWindowType( 53 mus::mojom::WindowType GetWindowType(
53 const mus::Window::SharedProperties& window); 54 const mus::Window::SharedProperties& window);
54 55
56 ui::wm::WindowType GetWmWindowType(const mus::Window* window);
57
55 mojom::AshWindowType GetAshWindowType(const mus::Window* window); 58 mojom::AshWindowType GetAshWindowType(const mus::Window* window);
56 59
57 base::string16 GetWindowTitle(const mus::Window* window); 60 base::string16 GetWindowTitle(const mus::Window* window);
58 61
59 mojo::Array<uint8_t> GetWindowAppIcon(const mus::Window* window); 62 mojo::Array<uint8_t> GetWindowAppIcon(const mus::Window* window);
60 63
61 void SetAppID(mus::Window* window, const base::string16& app_id); 64 void SetAppID(mus::Window* window, const base::string16& app_id);
62 base::string16 GetAppID(const mus::Window* window); 65 base::string16 GetAppID(const mus::Window* window);
63 66
64 bool GetWindowIgnoredByShelf(mus::Window* window); 67 bool GetWindowIgnoredByShelf(mus::Window* window);
65 68
66 } // namespace wm 69 } // namespace wm
67 } // namespace mash 70 } // namespace mash
68 71
69 #endif // MASH_WM_PROPERTY_UTIL_H_ 72 #endif // MASH_WM_PROPERTY_UTIL_H_
OLDNEW
« no previous file with comments | « mash/wm/bridge/wm_window_mus.cc ('k') | mash/wm/property_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698