| 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_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ |
| 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ |
| 7 | 7 |
| 8 #include "components/mus/public/cpp/window.h" | 8 #include "components/mus/public/cpp/window.h" |
| 9 #include "mojo/public/cpp/bindings/array.h" | 9 #include "mojo/public/cpp/bindings/array.h" |
| 10 | 10 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 61 } |
| 62 void LocalSetBounds(const gfx::Rect& old_bounds, | 62 void LocalSetBounds(const gfx::Rect& old_bounds, |
| 63 const gfx::Rect& new_bounds) { | 63 const gfx::Rect& new_bounds) { |
| 64 window_->LocalSetBounds(old_bounds, new_bounds); | 64 window_->LocalSetBounds(old_bounds, new_bounds); |
| 65 } | 65 } |
| 66 void LocalSetClientArea(const gfx::Insets& new_client_area) { | 66 void LocalSetClientArea(const gfx::Insets& new_client_area) { |
| 67 window_->LocalSetClientArea(new_client_area); | 67 window_->LocalSetClientArea(new_client_area); |
| 68 } | 68 } |
| 69 void LocalSetDrawn(bool drawn) { window_->LocalSetDrawn(drawn); } | 69 void LocalSetDrawn(bool drawn) { window_->LocalSetDrawn(drawn); } |
| 70 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); } | 70 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); } |
| 71 void LocalSetPredefinedCursor(mojom::Cursor cursor) { |
| 72 window_->LocalSetPredefinedCursor(cursor); |
| 73 } |
| 71 void LocalSetSharedProperty(const std::string& name, | 74 void LocalSetSharedProperty(const std::string& name, |
| 72 mojo::Array<uint8_t> new_data); | 75 mojo::Array<uint8_t> new_data); |
| 73 void LocalSetSharedProperty(const std::string& name, | 76 void LocalSetSharedProperty(const std::string& name, |
| 74 const std::vector<uint8_t>* data) { | 77 const std::vector<uint8_t>* data) { |
| 75 window_->LocalSetSharedProperty(name, data); | 78 window_->LocalSetSharedProperty(name, data); |
| 76 } | 79 } |
| 77 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); } | 80 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); } |
| 78 | 81 |
| 79 private: | 82 private: |
| 80 Window* window_; | 83 Window* window_; |
| 81 | 84 |
| 82 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowPrivate); | 85 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowPrivate); |
| 83 }; | 86 }; |
| 84 | 87 |
| 85 } // namespace mus | 88 } // namespace mus |
| 86 | 89 |
| 87 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ | 90 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_PRIVATE_H_ |
| OLD | NEW |