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

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

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase 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 | « mash/wm/non_client_frame_controller.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.mojom.h" 9 #include "components/mus/public/interfaces/window_manager.mojom.h"
10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h" 10 #include "components/mus/public/interfaces/window_manager_constants.mojom.h"
(...skipping 19 matching lines...) Expand all
30 mus::mojom::ShowState GetWindowShowState(const mus::Window* window); 30 mus::mojom::ShowState GetWindowShowState(const mus::Window* window);
31 31
32 void SetWindowUserSetBounds(mus::Window* window, const gfx::Rect& bounds); 32 void SetWindowUserSetBounds(mus::Window* window, const gfx::Rect& bounds);
33 gfx::Rect GetWindowUserSetBounds(const mus::Window* window); 33 gfx::Rect GetWindowUserSetBounds(const mus::Window* window);
34 34
35 void SetWindowPreferredSize(mus::Window* window, const gfx::Size& size); 35 void SetWindowPreferredSize(mus::Window* window, const gfx::Size& size);
36 gfx::Size GetWindowPreferredSize(const mus::Window* window); 36 gfx::Size GetWindowPreferredSize(const mus::Window* window);
37 37
38 mojom::Container GetRequestedContainer(const mus::Window* window); 38 mojom::Container GetRequestedContainer(const mus::Window* window);
39 39
40 mus::mojom::ResizeBehavior GetResizeBehavior(const mus::Window* window); 40 // Returns a bitfield of kResizeBehavior* values from
41 // window_manager_constants.mojom.
42 int32_t GetResizeBehavior(const mus::Window* window);
41 43
42 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds); 44 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds);
43 gfx::Rect GetRestoreBounds(const mus::Window* window); 45 gfx::Rect GetRestoreBounds(const mus::Window* window);
44 46
45 void SetShadow(mus::Window* window, Shadow* shadow); 47 void SetShadow(mus::Window* window, Shadow* shadow);
46 Shadow* GetShadow(mus::Window* window); 48 Shadow* GetShadow(mus::Window* window);
47 49
48 mus::mojom::WindowType GetWindowType(mus::Window* window); 50 mus::mojom::WindowType GetWindowType(mus::Window* window);
49 mus::mojom::WindowType GetWindowType( 51 mus::mojom::WindowType GetWindowType(
50 const mus::Window::SharedProperties& window); 52 const mus::Window::SharedProperties& window);
51 53
52 } // namespace wm 54 } // namespace wm
53 } // namespace mash 55 } // namespace mash
54 56
55 #endif // MASH_WM_PROPERTY_UTIL_H_ 57 #endif // MASH_WM_PROPERTY_UTIL_H_
OLDNEW
« no previous file with comments | « mash/wm/non_client_frame_controller.cc ('k') | mash/wm/property_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698