| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |