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

Side by Side Diff: components/mus/ws/server_window.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 | « components/mus/ws/focus_controller.cc ('k') | components/mus/ws/server_window.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_MUS_WS_SERVER_WINDOW_H_ 5 #ifndef COMPONENTS_MUS_WS_SERVER_WINDOW_H_
6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_H_ 6 #define COMPONENTS_MUS_WS_SERVER_WINDOW_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // area to fill the whole bounds. 73 // area to fill the whole bounds.
74 void SetBounds(const gfx::Rect& bounds); 74 void SetBounds(const gfx::Rect& bounds);
75 75
76 const std::vector<gfx::Rect>& additional_client_areas() const { 76 const std::vector<gfx::Rect>& additional_client_areas() const {
77 return additional_client_areas_; 77 return additional_client_areas_;
78 } 78 }
79 const gfx::Insets& client_area() const { return client_area_; } 79 const gfx::Insets& client_area() const { return client_area_; }
80 void SetClientArea(const gfx::Insets& insets, 80 void SetClientArea(const gfx::Insets& insets,
81 const std::vector<gfx::Rect>& additional_client_areas); 81 const std::vector<gfx::Rect>& additional_client_areas);
82 82
83 int32_t cursor() const { return cursor_id_; } 83 int32_t cursor() const { return static_cast<int32_t>(cursor_id_); }
84 84
85 const ServerWindow* parent() const { return parent_; } 85 const ServerWindow* parent() const { return parent_; }
86 ServerWindow* parent() { return parent_; } 86 ServerWindow* parent() { return parent_; }
87 87
88 const ServerWindow* GetRoot() const; 88 const ServerWindow* GetRoot() const;
89 ServerWindow* GetRoot() { 89 ServerWindow* GetRoot() {
90 return const_cast<ServerWindow*>( 90 return const_cast<ServerWindow*>(
91 const_cast<const ServerWindow*>(this)->GetRoot()); 91 const_cast<const ServerWindow*>(this)->GetRoot());
92 } 92 }
93 93
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 base::ObserverList<ServerWindowObserver> observers_; 219 base::ObserverList<ServerWindowObserver> observers_;
220 220
221 DISALLOW_COPY_AND_ASSIGN(ServerWindow); 221 DISALLOW_COPY_AND_ASSIGN(ServerWindow);
222 }; 222 };
223 223
224 } // namespace ws 224 } // namespace ws
225 } // namespace mus 225 } // namespace mus
226 226
227 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_H_ 227 #endif // COMPONENTS_MUS_WS_SERVER_WINDOW_H_
OLDNEW
« no previous file with comments | « components/mus/ws/focus_controller.cc ('k') | components/mus/ws/server_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698