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

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

Issue 2072343002: Changes how window manager obtains WindowTree from mus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: include Created 4 years, 6 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 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/window_server_test_base.h" 5 #include "components/mus/public/cpp/tests/window_server_test_base.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 : nullptr; 119 : nullptr;
120 } 120 }
121 121
122 void WindowServerTestBase::OnWmClientJankinessChanged( 122 void WindowServerTestBase::OnWmClientJankinessChanged(
123 const std::set<Window*>& client_windows, 123 const std::set<Window*>& client_windows,
124 bool janky) { 124 bool janky) {
125 if (window_manager_delegate_) 125 if (window_manager_delegate_)
126 window_manager_delegate_->OnWmClientJankinessChanged(client_windows, janky); 126 window_manager_delegate_->OnWmClientJankinessChanged(client_windows, janky);
127 } 127 }
128 128
129 void WindowServerTestBase::OnWmNewDisplay(Window* window,
130 const display::Display& display) {
131 if (window_manager_delegate_)
132 window_manager_delegate_->OnWmNewDisplay(window, display);
133 }
134
129 void WindowServerTestBase::OnAccelerator(uint32_t id, const ui::Event& event) { 135 void WindowServerTestBase::OnAccelerator(uint32_t id, const ui::Event& event) {
130 if (window_manager_delegate_) 136 if (window_manager_delegate_)
131 window_manager_delegate_->OnAccelerator(id, event); 137 window_manager_delegate_->OnAccelerator(id, event);
132 } 138 }
133 139
134 void WindowServerTestBase::Create(shell::Connection* connection, 140 void WindowServerTestBase::Create(shell::Connection* connection,
135 mojom::WindowTreeClientRequest request) { 141 mojom::WindowTreeClientRequest request) {
136 new WindowTreeClient(this, nullptr, std::move(request)); 142 new WindowTreeClient(this, nullptr, std::move(request));
137 } 143 }
138 144
139 } // namespace mus 145 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698