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

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: 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
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 int32_t GetResizeBehavior(const mus::Window* window);
yzshen1 2016/01/07 19:24:52 Please add comment what does the return value mean
Sam McNally 2016/01/08 05:12:51 Done.
41 41
42 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds); 42 void SetRestoreBounds(mus::Window* window, const gfx::Rect& bounds);
43 gfx::Rect GetRestoreBounds(const mus::Window* window); 43 gfx::Rect GetRestoreBounds(const mus::Window* window);
44 44
45 void SetShadow(mus::Window* window, Shadow* shadow); 45 void SetShadow(mus::Window* window, Shadow* shadow);
46 Shadow* GetShadow(mus::Window* window); 46 Shadow* GetShadow(mus::Window* window);
47 47
48 mus::mojom::WindowType GetWindowType(mus::Window* window); 48 mus::mojom::WindowType GetWindowType(mus::Window* window);
49 mus::mojom::WindowType GetWindowType( 49 mus::mojom::WindowType GetWindowType(
50 const mus::Window::SharedProperties& window); 50 const mus::Window::SharedProperties& window);
51 51
52 } // namespace wm 52 } // namespace wm
53 } // namespace mash 53 } // namespace mash
54 54
55 #endif // MASH_WM_PROPERTY_UTIL_H_ 55 #endif // MASH_WM_PROPERTY_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698