OLD | NEW |
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_RENDERER_MOUSE_LOCK_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_MOUSE_LOCK_DISPATCHER_H_ |
6 #define CONTENT_RENDERER_MOUSE_LOCK_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_MOUSE_LOCK_DISPATCHER_H_ |
7 #pragma once | |
8 | 7 |
9 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
10 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
11 | 10 |
12 namespace WebKit { | 11 namespace WebKit { |
13 class WebMouseEvent; | 12 class WebMouseEvent; |
14 } // namespace WebKit | 13 } // namespace WebKit |
15 | 14 |
16 class CONTENT_EXPORT MouseLockDispatcher { | 15 class CONTENT_EXPORT MouseLockDispatcher { |
17 public: | 16 public: |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 74 |
76 // |target_| is the pending or current owner of mouse lock. We retain a non | 75 // |target_| is the pending or current owner of mouse lock. We retain a non |
77 // owning reference here that must be cleared by |OnLockTargetDestroyed| | 76 // owning reference here that must be cleared by |OnLockTargetDestroyed| |
78 // when it is destroyed. | 77 // when it is destroyed. |
79 LockTarget* target_; | 78 LockTarget* target_; |
80 | 79 |
81 DISALLOW_COPY_AND_ASSIGN(MouseLockDispatcher); | 80 DISALLOW_COPY_AND_ASSIGN(MouseLockDispatcher); |
82 }; | 81 }; |
83 | 82 |
84 #endif // CONTENT_RENDERER_MOUSE_LOCK_DISPATCHER_H_ | 83 #endif // CONTENT_RENDERER_MOUSE_LOCK_DISPATCHER_H_ |
OLD | NEW |