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

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

Issue 2182633011: Replaces ::ui:: with ui:: in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/non_client_frame_controller.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 10 matching lines...) Expand all
21 } 21 }
22 22
23 namespace ash { 23 namespace ash {
24 namespace mus { 24 namespace mus {
25 25
26 class Shadow; 26 class Shadow;
27 27
28 // Utility functions to read values from properties & convert them to the 28 // Utility functions to read values from properties & convert them to the
29 // appropriate types. 29 // appropriate types.
30 30
31 void SetWindowShowState(::ui::Window* window, 31 void SetWindowShowState(ui::Window* window, ui::mojom::ShowState show_state);
32 ::ui::mojom::ShowState show_state); 32 ui::mojom::ShowState GetWindowShowState(const ui::Window* window);
33 ::ui::mojom::ShowState GetWindowShowState(const ::ui::Window* window);
34 33
35 void SetWindowUserSetBounds(::ui::Window* window, const gfx::Rect& bounds); 34 void SetWindowUserSetBounds(ui::Window* window, const gfx::Rect& bounds);
36 gfx::Rect GetWindowUserSetBounds(const ::ui::Window* window); 35 gfx::Rect GetWindowUserSetBounds(const ui::Window* window);
37 36
38 void SetWindowPreferredSize(::ui::Window* window, const gfx::Size& size); 37 void SetWindowPreferredSize(ui::Window* window, const gfx::Size& size);
39 gfx::Size GetWindowPreferredSize(const ::ui::Window* window); 38 gfx::Size GetWindowPreferredSize(const ui::Window* window);
40 39
41 // If |window| has the |kWindowContainer_Property| set as a property, then 40 // If |window| has the |kWindowContainer_Property| set as a property, then
42 // the value of |kWindowContainer_Property| is set in |container| and true is 41 // the value of |kWindowContainer_Property| is set in |container| and true is
43 // returned. Otherwise false is returned. 42 // returned. Otherwise false is returned.
44 bool GetRequestedContainer(const ::ui::Window* window, 43 bool GetRequestedContainer(const ui::Window* window,
45 mojom::Container* container); 44 mojom::Container* container);
46 45
47 // Returns a bitfield of kResizeBehavior* values from 46 // Returns a bitfield of kResizeBehavior* values from
48 // window_manager_constants.mojom. 47 // window_manager_constants.mojom.
49 int32_t GetResizeBehavior(const ::ui::Window* window); 48 int32_t GetResizeBehavior(const ui::Window* window);
50 49
51 void SetRestoreBounds(::ui::Window* window, const gfx::Rect& bounds); 50 void SetRestoreBounds(ui::Window* window, const gfx::Rect& bounds);
52 gfx::Rect GetRestoreBounds(const ::ui::Window* window); 51 gfx::Rect GetRestoreBounds(const ui::Window* window);
53 52
54 void SetShadow(::ui::Window* window, Shadow* shadow); 53 void SetShadow(ui::Window* window, Shadow* shadow);
55 Shadow* GetShadow(const ::ui::Window* window); 54 Shadow* GetShadow(const ui::Window* window);
56 55
57 ::ui::mojom::WindowType GetWindowType(const ::ui::Window* window); 56 ui::mojom::WindowType GetWindowType(const ui::Window* window);
58 ::ui::mojom::WindowType GetWindowType( 57 ui::mojom::WindowType GetWindowType(const ui::Window::SharedProperties& window);
59 const ::ui::Window::SharedProperties& window);
60 58
61 ui::wm::WindowType GetWmWindowType(const ::ui::Window* window); 59 ui::wm::WindowType GetWmWindowType(const ui::Window* window);
62 60
63 mojom::AshWindowType GetAshWindowType(const ::ui::Window* window); 61 mojom::AshWindowType GetAshWindowType(const ui::Window* window);
64 62
65 base::string16 GetWindowTitle(const ::ui::Window* window); 63 base::string16 GetWindowTitle(const ui::Window* window);
66 64
67 mojo::Array<uint8_t> GetWindowAppIcon(const ::ui::Window* window); 65 mojo::Array<uint8_t> GetWindowAppIcon(const ui::Window* window);
68 66
69 void SetAppID(::ui::Window* window, const base::string16& app_id); 67 void SetAppID(ui::Window* window, const base::string16& app_id);
70 base::string16 GetAppID(const ::ui::Window* window); 68 base::string16 GetAppID(const ui::Window* window);
71 69
72 bool GetWindowIgnoredByShelf(::ui::Window* window); 70 bool GetWindowIgnoredByShelf(ui::Window* window);
73 71
74 void SetWindowIsJanky(::ui::Window* window, bool janky); 72 void SetWindowIsJanky(ui::Window* window, bool janky);
75 bool IsWindowJanky(::ui::Window* window); 73 bool IsWindowJanky(ui::Window* window);
76 bool IsWindowJankyProperty(const void* key); 74 bool IsWindowJankyProperty(const void* key);
77 75
78 void SetAlwaysOnTop(::ui::Window* window, bool value); 76 void SetAlwaysOnTop(ui::Window* window, bool value);
79 bool IsAlwaysOnTop(::ui::Window* window); 77 bool IsAlwaysOnTop(ui::Window* window);
80 78
81 bool ShouldRemoveStandardFrame(::ui::Window* window); 79 bool ShouldRemoveStandardFrame(ui::Window* window);
82 80
83 } // namespace mus 81 } // namespace mus
84 } // namespace ash 82 } // namespace ash
85 83
86 #endif // ASH_MUS_PROPERTY_UTIL_H_ 84 #endif // ASH_MUS_PROPERTY_UTIL_H_
OLDNEW
« no previous file with comments | « ash/mus/non_client_frame_controller.cc ('k') | ash/mus/property_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698