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

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

Issue 2478383002: Remove SurfaceSequence from mus client code. (Closed)
Patch Set: Only cleanup. Created 4 years, 1 month 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/test_change_tracker.h ('k') | services/ui/ws/test_utils.h » ('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 #include "services/ui/ws/test_change_tracker.h" 5 #include "services/ui/ws/test_change_tracker.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 change.type = CHANGE_TYPE_ON_TOP_LEVEL_CREATED; 421 change.type = CHANGE_TYPE_ON_TOP_LEVEL_CREATED;
422 change.change_id = change_id; 422 change.change_id = change_id;
423 change.window_id = window_data->window_id; 423 change.window_id = window_data->window_id;
424 change.bool_value = drawn; 424 change.bool_value = drawn;
425 AddChange(change); 425 AddChange(change);
426 } 426 }
427 427
428 void TestChangeTracker::OnWindowSurfaceChanged( 428 void TestChangeTracker::OnWindowSurfaceChanged(
429 Id window_id, 429 Id window_id,
430 const cc::SurfaceId& surface_id, 430 const cc::SurfaceId& surface_id,
431 const cc::SurfaceSequence& surface_sequence,
432 const gfx::Size& frame_size, 431 const gfx::Size& frame_size,
433 float device_scale_factor) { 432 float device_scale_factor) {
434 Change change; 433 Change change;
435 change.type = CHANGE_TYPE_SURFACE_CHANGED; 434 change.type = CHANGE_TYPE_SURFACE_CHANGED;
436 change.window_id = window_id; 435 change.window_id = window_id;
437 change.surface_id = surface_id; 436 change.surface_id = surface_id;
438 change.surface_sequence = surface_sequence;
439 change.frame_size = frame_size; 437 change.frame_size = frame_size;
440 change.device_scale_factor = device_scale_factor; 438 change.device_scale_factor = device_scale_factor;
441 AddChange(change); 439 AddChange(change);
442 } 440 }
443 441
444 void TestChangeTracker::AddChange(const Change& change) { 442 void TestChangeTracker::AddChange(const Change& change) {
445 changes_.push_back(change); 443 changes_.push_back(change);
446 if (delegate_) 444 if (delegate_)
447 delegate_->OnChangeAdded(); 445 delegate_->OnChangeAdded();
448 } 446 }
(...skipping 12 matching lines...) Expand all
461 459
462 std::string TestWindow::ToString2() const { 460 std::string TestWindow::ToString2() const {
463 return base::StringPrintf( 461 return base::StringPrintf(
464 "window=%s parent=%s visible=%s", WindowIdToString(window_id).c_str(), 462 "window=%s parent=%s visible=%s", WindowIdToString(window_id).c_str(),
465 WindowIdToString(parent_id).c_str(), visible ? "true" : "false"); 463 WindowIdToString(parent_id).c_str(), visible ? "true" : "false");
466 } 464 }
467 465
468 } // namespace ws 466 } // namespace ws
469 467
470 } // namespace ui 468 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/test_change_tracker.h ('k') | services/ui/ws/test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698