| 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 SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.h" |
| 13 #include "mojo/public/cpp/bindings/array.h" | 13 #include "mojo/public/cpp/bindings/array.h" |
| 14 #include "services/ui/public/cpp/surface_id_handler.h" |
| 14 #include "services/ui/public/cpp/window.h" | 15 #include "services/ui/public/cpp/window.h" |
| 15 | 16 |
| 16 namespace ui { | 17 namespace ui { |
| 17 | 18 |
| 18 // This class is a friend of a Window and contains functions to mutate internal | 19 // This class is a friend of a Window and contains functions to mutate internal |
| 19 // state of Window. | 20 // state of Window. |
| 20 class WindowPrivate { | 21 class WindowPrivate { |
| 21 public: | 22 public: |
| 22 explicit WindowPrivate(Window* window); | 23 explicit WindowPrivate(Window* window); |
| 23 ~WindowPrivate(); | 24 ~WindowPrivate(); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 void LocalSetOpacity(float opacity) { window_->LocalSetOpacity(opacity); } | 81 void LocalSetOpacity(float opacity) { window_->LocalSetOpacity(opacity); } |
| 81 void LocalSetPredefinedCursor(mojom::Cursor cursor) { | 82 void LocalSetPredefinedCursor(mojom::Cursor cursor) { |
| 82 window_->LocalSetPredefinedCursor(cursor); | 83 window_->LocalSetPredefinedCursor(cursor); |
| 83 } | 84 } |
| 84 void LocalSetSharedProperty(const std::string& name, | 85 void LocalSetSharedProperty(const std::string& name, |
| 85 mojo::Array<uint8_t> new_data); | 86 mojo::Array<uint8_t> new_data); |
| 86 void LocalSetSharedProperty(const std::string& name, | 87 void LocalSetSharedProperty(const std::string& name, |
| 87 const std::vector<uint8_t>* data) { | 88 const std::vector<uint8_t>* data) { |
| 88 window_->LocalSetSharedProperty(name, data); | 89 window_->LocalSetSharedProperty(name, data); |
| 89 } | 90 } |
| 91 void LocalSetSurfaceId(std::unique_ptr<SurfaceInfo> surface_info) { |
| 92 window_->LocalSetSurfaceId(std::move(surface_info)); |
| 93 } |
| 94 |
| 90 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); } | 95 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); } |
| 91 | 96 |
| 92 private: | 97 private: |
| 93 Window* window_; | 98 Window* window_; |
| 94 | 99 |
| 95 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); | 100 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); |
| 96 }; | 101 }; |
| 97 | 102 |
| 98 } // namespace ui | 103 } // namespace ui |
| 99 | 104 |
| 100 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ | 105 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ |
| OLD | NEW |