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

Side by Side Diff: services/ui/ws/test_change_tracker.h

Issue 2511883006: Mojo C++ bindings: switch services/ui/public/interfaces mojom target to use STL types. (Closed)
Patch Set: . Created 4 years 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 | « services/ui/ws/display.cc ('k') | services/ui/ws/test_change_tracker.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 SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ 5 #ifndef SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_
6 #define SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ 6 #define SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 104
105 // Convenience for returning the description of the first item in |windows|. 105 // Convenience for returning the description of the first item in |windows|.
106 // Returns an empty string if |windows| has something other than one entry. 106 // Returns an empty string if |windows| has something other than one entry.
107 std::string SingleWindowDescription(const std::vector<TestWindow>& windows); 107 std::string SingleWindowDescription(const std::vector<TestWindow>& windows);
108 108
109 // Returns a string description of |changes[0].windows|. Returns an empty string 109 // Returns a string description of |changes[0].windows|. Returns an empty string
110 // if change.size() != 1. 110 // if change.size() != 1.
111 std::string ChangeWindowDescription(const std::vector<Change>& changes); 111 std::string ChangeWindowDescription(const std::vector<Change>& changes);
112 112
113 // Converts WindowDatas to TestWindows. 113 // Converts WindowDatas to TestWindows.
114 void WindowDatasToTestWindows(const mojo::Array<mojom::WindowDataPtr>& data, 114 void WindowDatasToTestWindows(const std::vector<mojom::WindowDataPtr>& data,
115 std::vector<TestWindow>* test_windows); 115 std::vector<TestWindow>* test_windows);
116 116
117 // TestChangeTracker is used to record WindowTreeClient functions. It notifies 117 // TestChangeTracker is used to record WindowTreeClient functions. It notifies
118 // a delegate any time a change is added. 118 // a delegate any time a change is added.
119 class TestChangeTracker { 119 class TestChangeTracker {
120 public: 120 public:
121 // Used to notify the delegate when a change is added. A change corresponds to 121 // Used to notify the delegate when a change is added. A change corresponds to
122 // a single WindowTreeClient function. 122 // a single WindowTreeClient function.
123 class Delegate { 123 class Delegate {
124 public: 124 public:
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 std::vector<Change> changes_; 185 std::vector<Change> changes_;
186 186
187 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); 187 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker);
188 }; 188 };
189 189
190 } // namespace ws 190 } // namespace ws
191 191
192 } // namespace ui 192 } // namespace ui
193 193
194 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ 194 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_
OLDNEW
« no previous file with comments | « services/ui/ws/display.cc ('k') | services/ui/ws/test_change_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698