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

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

Issue 2568303006: aura-mus: Implement Deactivate(). (Closed)
Patch Set: Add comment. Created 3 years, 11 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
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_manager_client_unittest.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_utils.h" 5 #include "services/ui/ws/test_utils.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/output/copy_output_request.h" 10 #include "cc/output/copy_output_request.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 void TestWindowManager::WmPerformMoveLoop(uint32_t change_id, 239 void TestWindowManager::WmPerformMoveLoop(uint32_t change_id,
240 uint32_t window_id, 240 uint32_t window_id,
241 mojom::MoveLoopSource source, 241 mojom::MoveLoopSource source,
242 const gfx::Point& cursor_location) { 242 const gfx::Point& cursor_location) {
243 on_perform_move_loop_called_ = true; 243 on_perform_move_loop_called_ = true;
244 } 244 }
245 245
246 void TestWindowManager::WmCancelMoveLoop(uint32_t window_id) {} 246 void TestWindowManager::WmCancelMoveLoop(uint32_t window_id) {}
247 247
248 void TestWindowManager::WmDeactivateWindow(uint32_t window_id) {}
249
248 void TestWindowManager::OnAccelerator(uint32_t ack_id, 250 void TestWindowManager::OnAccelerator(uint32_t ack_id,
249 uint32_t accelerator_id, 251 uint32_t accelerator_id,
250 std::unique_ptr<ui::Event> event) { 252 std::unique_ptr<ui::Event> event) {
251 on_accelerator_called_ = true; 253 on_accelerator_called_ = true;
252 on_accelerator_id_ = accelerator_id; 254 on_accelerator_id_ = accelerator_id;
253 } 255 }
254 256
255 // TestWindowTreeClient ------------------------------------------------------- 257 // TestWindowTreeClient -------------------------------------------------------
256 258
257 TestWindowTreeClient::TestWindowTreeClient() 259 TestWindowTreeClient::TestWindowTreeClient()
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 return nullptr; 633 return nullptr;
632 if (!tree->AddWindow(parent_client_id, client_window_id)) 634 if (!tree->AddWindow(parent_client_id, client_window_id))
633 return nullptr; 635 return nullptr;
634 *client_id = client_window_id; 636 *client_id = client_window_id;
635 return tree->GetWindowByClientId(client_window_id); 637 return tree->GetWindowByClientId(client_window_id);
636 } 638 }
637 639
638 } // namespace test 640 } // namespace test
639 } // namespace ws 641 } // namespace ws
640 } // namespace ui 642 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_manager_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698