Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
nasko
2016/05/25 21:12:01
No (c) and we are now 2016 ;)
lfg
2016/05/31 21:13:20
Same question as the other file.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_MOUSE_LOCK_DISPATCHER_H_ | |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_MOUSE_LOCK_DISPATCHER_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "base/macros.h" | |
| 10 #include "content/renderer/mouse_lock_dispatcher.h" | |
| 11 | |
| 12 namespace IPC { | |
| 13 class Message; | |
| 14 } | |
| 15 | |
| 16 namespace content { | |
| 17 | |
| 18 class RenderWidget; | |
| 19 | |
| 20 // RenderViewMouseLockDispatcher is owned by RenderViewImpl. | |
| 21 class RenderWidgetMouseLockDispatcher : public MouseLockDispatcher { | |
| 22 public: | |
| 23 explicit RenderWidgetMouseLockDispatcher(RenderWidget* render_widget); | |
| 24 ~RenderWidgetMouseLockDispatcher() override; | |
| 25 | |
| 26 bool OnMessageReceived(const IPC::Message& message); | |
| 27 | |
| 28 private: | |
| 29 // MouseLockDispatcher implementation. | |
| 30 void SendLockMouseRequest(bool unlocked_by_target) override; | |
| 31 void SendUnlockMouseRequest() override; | |
| 32 | |
| 33 void OnLockMouseACK(bool succeeded); | |
| 34 | |
| 35 RenderWidget* render_widget_; | |
| 36 | |
| 37 DISALLOW_COPY_AND_ASSIGN(RenderWidgetMouseLockDispatcher); | |
| 38 }; | |
| 39 | |
| 40 } // namespace content | |
| 41 | |
| 42 #endif // CONTENT_RENDERER_RENDER_WIDGET_MOUSE_LOCK_DISPATCHER_H_ | |
| OLD | NEW |