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

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

Issue 1484533002: mus: Introduce AttachSurface to allow creating Surface prior to OnEmbed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Sadrul's comments 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
« no previous file with comments | « components/mus/public/cpp/tests/test_window_tree.h ('k') | components/mus/public/cpp/window.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 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
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 const SetWindowVisibilityCallback& callback) {} 44 const SetWindowVisibilityCallback& callback) {}
45 45
46 void TestWindowTree::SetWindowProperty(uint32_t change_id, 46 void TestWindowTree::SetWindowProperty(uint32_t change_id,
47 uint32_t window_id, 47 uint32_t window_id,
48 const mojo::String& name, 48 const mojo::String& name,
49 mojo::Array<uint8_t> value) { 49 mojo::Array<uint8_t> value) {
50 got_change_ = true; 50 got_change_ = true;
51 change_id_ = change_id; 51 change_id_ = change_id;
52 } 52 }
53 53
54 void TestWindowTree::RequestSurface( 54 void TestWindowTree::AttachSurface(
55 uint32_t window_id, 55 uint32_t window_id,
56 mojom::SurfaceType type, 56 mojom::SurfaceType type,
57 mojo::InterfaceRequest<mojom::Surface> surface, 57 mojo::InterfaceRequest<mojom::Surface> surface,
58 mojom::SurfaceClientPtr client) {} 58 mojom::SurfaceClientPtr client) {}
59 59
60 void TestWindowTree::AddWindow(uint32_t parent, 60 void TestWindowTree::AddWindow(uint32_t parent,
61 uint32_t child, 61 uint32_t child,
62 const AddWindowCallback& callback) {} 62 const AddWindowCallback& callback) {}
63 63
64 void TestWindowTree::RemoveWindowFromParent( 64 void TestWindowTree::RemoveWindowFromParent(
(...skipping 28 matching lines...) Expand all
93 void TestWindowTree::SetWindowTextInputState(uint32_t window_id, 93 void TestWindowTree::SetWindowTextInputState(uint32_t window_id,
94 mojo::TextInputStatePtr state) {} 94 mojo::TextInputStatePtr state) {}
95 95
96 void TestWindowTree::SetImeVisibility(uint32_t window_id, 96 void TestWindowTree::SetImeVisibility(uint32_t window_id,
97 bool visible, 97 bool visible,
98 mojo::TextInputStatePtr state) {} 98 mojo::TextInputStatePtr state) {}
99 99
100 void TestWindowTree::WmResponse(uint32_t change_id, bool response) {} 100 void TestWindowTree::WmResponse(uint32_t change_id, bool response) {}
101 101
102 } // 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.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698