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

Side by Side Diff: content/public/browser/web_contents_delegate.h

Issue 10173030: User Gesture plumbed from Renderer to Browser's FullscreenController::RequestToLockMouse. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yzshen nits fixed. Created 8 years, 8 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 | Annotate | Revision Log
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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 384
385 // Notification message from HTML UI. 385 // Notification message from HTML UI.
386 virtual void WebUISend(WebContents* web_contents, 386 virtual void WebUISend(WebContents* web_contents,
387 const GURL& source_url, 387 const GURL& source_url,
388 const std::string& name, 388 const std::string& name,
389 const base::ListValue& args) {} 389 const base::ListValue& args) {}
390 390
391 // Requests to lock the mouse. Once the request is approved or rejected, 391 // Requests to lock the mouse. Once the request is approved or rejected,
392 // GotResponseToLockMouseRequest() will be called on the requesting tab 392 // GotResponseToLockMouseRequest() will be called on the requesting tab
393 // contents. 393 // contents.
394 virtual void RequestToLockMouse(WebContents* web_contents) {} 394 virtual void RequestToLockMouse(WebContents* web_contents,
395 bool user_gesture) {}
395 396
396 // Notification that the page has lost the mouse lock. 397 // Notification that the page has lost the mouse lock.
397 virtual void LostMouseLock() {} 398 virtual void LostMouseLock() {}
398 399
399 protected: 400 protected:
400 virtual ~WebContentsDelegate(); 401 virtual ~WebContentsDelegate();
401 402
402 private: 403 private:
403 friend class ::WebContentsImpl; 404 friend class ::WebContentsImpl;
404 405
405 // Called when |this| becomes the WebContentsDelegate for |source|. 406 // Called when |this| becomes the WebContentsDelegate for |source|.
406 void Attach(WebContents* source); 407 void Attach(WebContents* source);
407 408
408 // Called when |this| is no longer the WebContentsDelegate for |source|. 409 // Called when |this| is no longer the WebContentsDelegate for |source|.
409 void Detach(WebContents* source); 410 void Detach(WebContents* source);
410 411
411 // The WebContents that this is currently a delegate for. 412 // The WebContents that this is currently a delegate for.
412 std::set<WebContents*> attached_contents_; 413 std::set<WebContents*> attached_contents_;
413 }; 414 };
414 415
415 } // namespace content 416 } // namespace content
416 417
417 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ 418 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_view_host_delegate.h ('k') | content/renderer/mouse_lock_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698