Chromium Code Reviews| Index: content/renderer/mouse_lock_dispatcher.h |
| diff --git a/content/renderer/mouse_lock_dispatcher.h b/content/renderer/mouse_lock_dispatcher.h |
| index 8035d091eafb76ab47cb429d7deb15b6960d68ca..8cb6e80a86d4d9738ec671a8ba4fe1e8bf84da41 100644 |
| --- a/content/renderer/mouse_lock_dispatcher.h |
| +++ b/content/renderer/mouse_lock_dispatcher.h |
| @@ -7,6 +7,7 @@ |
| #pragma once |
| #include "base/basictypes.h" |
| +#include "content/common/mouse_lock.h" |
| #include "content/public/renderer/render_view_observer.h" |
| class RenderViewImpl; |
| @@ -76,6 +77,11 @@ class CONTENT_EXPORT MouseLockDispatcher : public content::RenderViewObserver { |
| bool pending_lock_request_; |
| bool pending_unlock_request_; |
| + // Used when locking to indicate when a target application has voluntarily |
| + // unlocked and desires to relock the mouse. If the mouse is unlocked due |
| + // to ESC being pressed by the user, this will NOT_TARGET |
|
scheib
2012/05/30 16:41:21
s/will/will be/, and add a period.
|
| + content::MouseUnlockSource unlock_source_; |
| + |
| // |target_| is the pending or current owner of mouse lock. We retain a non |
| // owning reference here that must be cleared by |OnLockTargetDestroyed| |
| // when it is destroyed. |