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

Side by Side Diff: components/mus/public/cpp/tests/test_window_tree.cc

Issue 1474543002: Makes NewWindow() take set of properties for window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke shadow_style changes Created 5 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/mus/public/cpp/tests/test_window_tree.h" 5 #include "components/mus/public/cpp/tests/test_window_tree.h"
6 6
7 namespace mus { 7 namespace mus {
8 8
9 TestWindowTree::TestWindowTree() : got_change_(false), change_id_(0) {} 9 TestWindowTree::TestWindowTree() : got_change_(false), change_id_(0) {}
10 10
11 TestWindowTree::~TestWindowTree() {} 11 TestWindowTree::~TestWindowTree() {}
12 12
13 bool TestWindowTree::GetAndClearChangeId(uint32_t* change_id) { 13 bool TestWindowTree::GetAndClearChangeId(uint32_t* change_id) {
14 if (!got_change_) 14 if (!got_change_)
15 return false; 15 return false;
16 16
17 if (change_id) 17 if (change_id)
18 *change_id = change_id_; 18 *change_id = change_id_;
19 got_change_ = false; 19 got_change_ = false;
20 return true; 20 return true;
21 } 21 }
22 22
23 void TestWindowTree::NewWindow(uint32_t change_id, uint32_t window_id) {} 23 void TestWindowTree::NewWindow(
24 uint32_t change_id,
25 uint32_t window_id,
26 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) {}
24 27
25 void TestWindowTree::DeleteWindow(uint32_t window_id, 28 void TestWindowTree::DeleteWindow(uint32_t window_id,
26 const DeleteWindowCallback& callback) {} 29 const DeleteWindowCallback& callback) {}
27 30
28 void TestWindowTree::SetWindowBounds(uint32_t change_id, 31 void TestWindowTree::SetWindowBounds(uint32_t change_id,
29 uint32_t window_id, 32 uint32_t window_id,
30 mojo::RectPtr bounds) { 33 mojo::RectPtr bounds) {
31 got_change_ = true; 34 got_change_ = true;
32 change_id_ = change_id; 35 change_id_ = change_id;
33 } 36 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void TestWindowTree::SetWindowTextInputState(uint32_t window_id, 93 void TestWindowTree::SetWindowTextInputState(uint32_t window_id,
91 mojo::TextInputStatePtr state) {} 94 mojo::TextInputStatePtr state) {}
92 95
93 void TestWindowTree::SetImeVisibility(uint32_t window_id, 96 void TestWindowTree::SetImeVisibility(uint32_t window_id,
94 bool visible, 97 bool visible,
95 mojo::TextInputStatePtr state) {} 98 mojo::TextInputStatePtr state) {}
96 99
97 void TestWindowTree::WmResponse(uint32_t change_id, bool response) {} 100 void TestWindowTree::WmResponse(uint32_t change_id, bool response) {}
98 101
99 } // namespace mus 102 } // namespace mus
OLDNEW
« no previous file with comments | « components/mus/public/cpp/tests/test_window_tree.h ('k') | components/mus/public/cpp/window_tree_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698