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

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

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 years, 6 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
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_RENDER_VIEW_MOUSE_LOCK_DISPATCHER_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_MOUSE_LOCK_DISPATCHER_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_MOUSE_LOCK_DISPATCHER_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_MOUSE_LOCK_DISPATCHER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "content/public/renderer/render_view_observer.h" 10 #include "content/public/renderer/render_view_observer.h"
11 #include "content/renderer/mouse_lock_dispatcher.h" 11 #include "content/renderer/mouse_lock_dispatcher.h"
12 12
13 namespace content { 13 namespace content {
14 class RenderViewImpl; 14 class RenderViewImpl;
15 15
16 // RenderViewMouseLockDispatcher is owned by RenderViewImpl. 16 // RenderViewMouseLockDispatcher is owned by RenderViewImpl.
17 class RenderViewMouseLockDispatcher : public MouseLockDispatcher, 17 class RenderViewMouseLockDispatcher : public MouseLockDispatcher,
18 public RenderViewObserver { 18 public RenderViewObserver {
19 public: 19 public:
20 explicit RenderViewMouseLockDispatcher(RenderViewImpl* render_view_impl); 20 explicit RenderViewMouseLockDispatcher(RenderViewImpl* render_view_impl);
21 ~RenderViewMouseLockDispatcher() override; 21 ~RenderViewMouseLockDispatcher() override;
22 22
23 private: 23 private:
24 // MouseLockDispatcher implementation. 24 // MouseLockDispatcher implementation.
25 void SendLockMouseRequest(bool unlocked_by_target) override; 25 void SendLockMouseRequest(bool unlocked_by_target) override;
26 void SendUnlockMouseRequest() override; 26 void SendUnlockMouseRequest() override;
27 27
28 // RenderView::Observer implementation. 28 // RenderViewObserver implementation.
29 bool OnMessageReceived(const IPC::Message& message) override; 29 bool OnMessageReceived(const IPC::Message& message) override;
30 void OnDestruct() override;
30 31
31 void OnLockMouseACK(bool succeeded); 32 void OnLockMouseACK(bool succeeded);
32 33
33 RenderViewImpl* render_view_impl_; 34 RenderViewImpl* render_view_impl_;
34 35
35 DISALLOW_COPY_AND_ASSIGN(RenderViewMouseLockDispatcher); 36 DISALLOW_COPY_AND_ASSIGN(RenderViewMouseLockDispatcher);
36 }; 37 };
37 38
38 } // namespace content 39 } // namespace content
39 40
40 #endif // CONTENT_RENDERER_RENDER_VIEW_MOUSE_LOCK_DISPATCHER_H_ 41 #endif // CONTENT_RENDERER_RENDER_VIEW_MOUSE_LOCK_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/render_frame_impl_browsertest.cc ('k') | content/renderer/render_view_mouse_lock_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698