Index: chrome/browser/ui/extensions/shell_window.cc |
diff --git a/chrome/browser/ui/extensions/shell_window.cc b/chrome/browser/ui/extensions/shell_window.cc |
index 1eb23bb4b883063a011dfe3129c752708dbaa7a2..cf1a3c9a4d58c9fc2faf3c694d6e90ffa491c914 100644 |
--- a/chrome/browser/ui/extensions/shell_window.cc |
+++ b/chrome/browser/ui/extensions/shell_window.cc |
@@ -302,6 +302,13 @@ void ShellWindow::HandleKeyboardEvent( |
native_app_window_->HandleKeyboardEvent(event); |
} |
+void ShellWindow::RequestToLockMouse(WebContents* web_contents, |
+ bool user_gesture, |
+ bool last_unlocked_by_target) { |
+ web_contents->GotResponseToLockMouseRequest( |
+ extension_->HasAPIPermission(extensions::APIPermission::kPointerLock)); |
+} |
+ |
void ShellWindow::OnNativeClose() { |
extensions::ShellWindowRegistry::Get(profile_)->RemoveShellWindow(this); |
content::RenderViewHost* rvh = web_contents_->GetRenderViewHost(); |