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

Side by Side Diff: content/public/test/browser_test_utils.cc

Issue 2915613004: [PointerLock] Move "silent mouse lock" logic from renderer to RWHI (Closed)
Patch Set: Created 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/public/test/browser_test_utils.h" 5 #include "content/public/test/browser_test_utils.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <tuple> 8 #include <tuple>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 FileSystemHostMsg_Write(request_id, file_path, blob_uuid, position)); 2040 FileSystemHostMsg_Write(request_id, file_path, blob_uuid, position));
2041 2041
2042 // If this started an async operation, wait for it to complete. 2042 // If this started an async operation, wait for it to complete.
2043 if (waiter.did_start_update()) 2043 if (waiter.did_start_update())
2044 waiter.WaitForEndUpdate(); 2044 waiter.WaitForEndUpdate();
2045 } 2045 }
2046 2046
2047 void PwnMessageHelper::LockMouse(RenderProcessHost* process, 2047 void PwnMessageHelper::LockMouse(RenderProcessHost* process,
2048 int routing_id, 2048 int routing_id,
2049 bool user_gesture, 2049 bool user_gesture,
2050 bool last_unlocked_by_target,
2051 bool privileged) { 2050 bool privileged) {
2052 IPC::IpcSecurityTestUtil::PwnMessageReceived( 2051 IPC::IpcSecurityTestUtil::PwnMessageReceived(
2053 process->GetChannel(), 2052 process->GetChannel(),
2054 ViewHostMsg_LockMouse(routing_id, user_gesture, last_unlocked_by_target, 2053 ViewHostMsg_LockMouse(routing_id, user_gesture, privileged));
2055 privileged));
2056 } 2054 }
2057 2055
2058 } // namespace content 2056 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698