Chromium Code Reviews| Index: content/renderer/render_widget_mouse_lock_dispatcher.h |
| diff --git a/content/renderer/render_widget_mouse_lock_dispatcher.h b/content/renderer/render_widget_mouse_lock_dispatcher.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..7f7f5d8cadf434e800cfb061f3e00b2c5bede1eb |
| --- /dev/null |
| +++ b/content/renderer/render_widget_mouse_lock_dispatcher.h |
| @@ -0,0 +1,42 @@ |
| +// 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.
|
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CONTENT_RENDERER_RENDER_WIDGET_MOUSE_LOCK_DISPATCHER_H_ |
| +#define CONTENT_RENDERER_RENDER_WIDGET_MOUSE_LOCK_DISPATCHER_H_ |
| + |
| +#include "base/compiler_specific.h" |
| +#include "base/macros.h" |
| +#include "content/renderer/mouse_lock_dispatcher.h" |
| + |
| +namespace IPC { |
| +class Message; |
| +} |
| + |
| +namespace content { |
| + |
| +class RenderWidget; |
| + |
| +// RenderViewMouseLockDispatcher is owned by RenderViewImpl. |
| +class RenderWidgetMouseLockDispatcher : public MouseLockDispatcher { |
| + public: |
| + explicit RenderWidgetMouseLockDispatcher(RenderWidget* render_widget); |
| + ~RenderWidgetMouseLockDispatcher() override; |
| + |
| + bool OnMessageReceived(const IPC::Message& message); |
| + |
| + private: |
| + // MouseLockDispatcher implementation. |
| + void SendLockMouseRequest(bool unlocked_by_target) override; |
| + void SendUnlockMouseRequest() override; |
| + |
| + void OnLockMouseACK(bool succeeded); |
| + |
| + RenderWidget* render_widget_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(RenderWidgetMouseLockDispatcher); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_RENDER_WIDGET_MOUSE_LOCK_DISPATCHER_H_ |