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

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

Issue 2652713003: aura-mus: Make StackAtTop() proxy to the window manager. (Closed)
Patch Set: Add check to window_manager_delegate_ in WmStackAtTop. 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_tree.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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) {} 248 void TestWindowManager::WmDeactivateWindow(uint32_t window_id) {}
249 249
250 void TestWindowManager::WmStackAtTop(uint32_t change_id, uint32_t window_id) {}
251
250 void TestWindowManager::OnAccelerator(uint32_t ack_id, 252 void TestWindowManager::OnAccelerator(uint32_t ack_id,
251 uint32_t accelerator_id, 253 uint32_t accelerator_id,
252 std::unique_ptr<ui::Event> event) { 254 std::unique_ptr<ui::Event> event) {
253 on_accelerator_called_ = true; 255 on_accelerator_called_ = true;
254 on_accelerator_id_ = accelerator_id; 256 on_accelerator_id_ = accelerator_id;
255 } 257 }
256 258
257 // TestWindowTreeClient ------------------------------------------------------- 259 // TestWindowTreeClient -------------------------------------------------------
258 260
259 TestWindowTreeClient::TestWindowTreeClient() 261 TestWindowTreeClient::TestWindowTreeClient()
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 return nullptr; 635 return nullptr;
634 if (!tree->AddWindow(parent_client_id, client_window_id)) 636 if (!tree->AddWindow(parent_client_id, client_window_id))
635 return nullptr; 637 return nullptr;
636 *client_id = client_window_id; 638 *client_id = client_window_id;
637 return tree->GetWindowByClientId(client_window_id); 639 return tree->GetWindowByClientId(client_window_id);
638 } 640 }
639 641
640 } // namespace test 642 } // namespace test
641 } // namespace ws 643 } // namespace ws
642 } // namespace ui 644 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/test_utils.h ('k') | services/ui/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698