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

Side by Side Diff: services/ui/public/cpp/window_private.h

Issue 2607063002: Remove mojo::Array. (Closed)
Patch Set: Created 3 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 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"
14 #include "services/ui/public/cpp/surface_id_handler.h" 13 #include "services/ui/public/cpp/surface_id_handler.h"
15 #include "services/ui/public/cpp/window.h" 14 #include "services/ui/public/cpp/window.h"
16 15
17 namespace ui { 16 namespace ui {
18 17
19 // This class is a friend of a Window and contains functions to mutate internal 18 // This class is a friend of a Window and contains functions to mutate internal
20 // state of Window. 19 // state of Window.
21 class WindowPrivate { 20 class WindowPrivate {
22 public: 21 public:
23 explicit WindowPrivate(Window* window); 22 explicit WindowPrivate(Window* window);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const std::vector<gfx::Rect>& additional_client_areas) { 75 const std::vector<gfx::Rect>& additional_client_areas) {
77 window_->LocalSetClientArea(client_area, additional_client_areas); 76 window_->LocalSetClientArea(client_area, additional_client_areas);
78 } 77 }
79 void LocalSetParentDrawn(bool drawn) { window_->LocalSetParentDrawn(drawn); } 78 void LocalSetParentDrawn(bool drawn) { window_->LocalSetParentDrawn(drawn); }
80 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); } 79 void LocalSetVisible(bool visible) { window_->LocalSetVisible(visible); }
81 void LocalSetOpacity(float opacity) { window_->LocalSetOpacity(opacity); } 80 void LocalSetOpacity(float opacity) { window_->LocalSetOpacity(opacity); }
82 void LocalSetPredefinedCursor(mojom::Cursor cursor) { 81 void LocalSetPredefinedCursor(mojom::Cursor cursor) {
83 window_->LocalSetPredefinedCursor(cursor); 82 window_->LocalSetPredefinedCursor(cursor);
84 } 83 }
85 void LocalSetSharedProperty(const std::string& name, 84 void LocalSetSharedProperty(const std::string& name,
86 mojo::Array<uint8_t> new_data);
87 void LocalSetSharedProperty(const std::string& name,
88 const std::vector<uint8_t>* data) { 85 const std::vector<uint8_t>* data) {
89 window_->LocalSetSharedProperty(name, data); 86 window_->LocalSetSharedProperty(name, data);
90 } 87 }
91 void LocalSetSurfaceInfo(const cc::SurfaceInfo& surface_info) { 88 void LocalSetSurfaceInfo(const cc::SurfaceInfo& surface_info) {
92 window_->LocalSetSurfaceInfo(surface_info); 89 window_->LocalSetSurfaceInfo(surface_info);
93 } 90 }
94 91
95 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); } 92 void NotifyWindowStackingChanged() { window_->NotifyWindowStackingChanged(); }
96 93
97 private: 94 private:
98 Window* window_; 95 Window* window_;
99 96
100 DISALLOW_COPY_AND_ASSIGN(WindowPrivate); 97 DISALLOW_COPY_AND_ASSIGN(WindowPrivate);
101 }; 98 };
102 99
103 } // namespace ui 100 } // namespace ui
104 101
105 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_ 102 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698