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

Side by Side Diff: content/renderer/render_widget_mouse_lock_dispatcher.h

Issue 1980133002: Implement pointer lock API for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing comments Created 4 years, 7 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698