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

Side by Side Diff: ash/mus/property_util.h

Issue 2357143004: mash: Support ShelfWindowWatcher via ShelfItem properties. (Closed)
Patch Set: Address comments. Created 4 years, 2 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 | « ash/mus/bridge/wm_window_mus.cc ('k') | ash/mus/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 ASH_MUS_PROPERTY_UTIL_H_ 5 #ifndef ASH_MUS_PROPERTY_UTIL_H_
6 #define ASH_MUS_PROPERTY_UTIL_H_ 6 #define ASH_MUS_PROPERTY_UTIL_H_
7 7
8 #include "ash/public/interfaces/ash_window_type.mojom.h" 8 #include "ash/public/interfaces/ash_window_type.mojom.h"
9 #include "ash/public/interfaces/container.mojom.h" 9 #include "ash/public/interfaces/container.mojom.h"
10 #include "services/ui/public/cpp/window.h" 10 #include "services/ui/public/cpp/window.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 void SetShadow(ui::Window* window, Shadow* shadow); 55 void SetShadow(ui::Window* window, Shadow* shadow);
56 Shadow* GetShadow(const ui::Window* window); 56 Shadow* GetShadow(const ui::Window* window);
57 57
58 ui::mojom::WindowType GetWindowType(const ui::Window* window); 58 ui::mojom::WindowType GetWindowType(const ui::Window* window);
59 ui::mojom::WindowType GetWindowType(const ui::Window::SharedProperties& window); 59 ui::mojom::WindowType GetWindowType(const ui::Window::SharedProperties& window);
60 60
61 ui::wm::WindowType GetWmWindowType(const ui::Window* window); 61 ui::wm::WindowType GetWmWindowType(const ui::Window* window);
62 62
63 mojom::AshWindowType GetAshWindowType(const ui::Window* window); 63 mojom::AshWindowType GetAshWindowType(const ui::Window* window);
64 64
65 void SetWindowTitle(ui::Window* window, base::string16 title);
65 base::string16 GetWindowTitle(const ui::Window* window); 66 base::string16 GetWindowTitle(const ui::Window* window);
66 67
67 mojo::Array<uint8_t> GetWindowAppIcon(const ui::Window* window); 68 mojo::Array<uint8_t> GetWindowAppIcon(const ui::Window* window);
68 69
69 void SetAppID(ui::Window* window, const base::string16& app_id); 70 void SetAppID(ui::Window* window, const base::string16& app_id);
70 base::string16 GetAppID(const ui::Window* window); 71 base::string16 GetAppID(const ui::Window* window);
71 72
72 bool GetWindowIgnoredByShelf(ui::Window* window); 73 bool GetWindowIgnoredByShelf(ui::Window* window);
73 74
74 void SetWindowIsJanky(ui::Window* window, bool janky); 75 void SetWindowIsJanky(ui::Window* window, bool janky);
75 bool IsWindowJanky(ui::Window* window); 76 bool IsWindowJanky(ui::Window* window);
76 bool IsWindowJankyProperty(const void* key); 77 bool IsWindowJankyProperty(const void* key);
77 78
78 void SetAlwaysOnTop(ui::Window* window, bool value); 79 void SetAlwaysOnTop(ui::Window* window, bool value);
79 bool IsAlwaysOnTop(ui::Window* window); 80 bool IsAlwaysOnTop(ui::Window* window);
80 81
81 bool ShouldRemoveStandardFrame(ui::Window* window); 82 bool ShouldRemoveStandardFrame(ui::Window* window);
82 83
83 // See description of |WindowManager::kRendererParentTitleArea_Property|. 84 // See description of |WindowManager::kRendererParentTitleArea_Property|.
84 bool ShouldRenderParentTitleArea(ui::Window* window); 85 bool ShouldRenderParentTitleArea(ui::Window* window);
85 86
86 } // namespace mus 87 } // namespace mus
87 } // namespace ash 88 } // namespace ash
88 89
89 #endif // ASH_MUS_PROPERTY_UTIL_H_ 90 #endif // ASH_MUS_PROPERTY_UTIL_H_
OLDNEW
« no previous file with comments | « ash/mus/bridge/wm_window_mus.cc ('k') | ash/mus/property_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698