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

Unified Diff: content/renderer/render_view_mouse_lock_dispatcher.h

Issue 10458008: Support mouse lock in Flash fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_view_mouse_lock_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_mouse_lock_dispatcher.h
diff --git a/content/renderer/render_view_mouse_lock_dispatcher.h b/content/renderer/render_view_mouse_lock_dispatcher.h
new file mode 100644
index 0000000000000000000000000000000000000000..38ed4c8c8e190808ba2608e308ba9ad26df2555b
--- /dev/null
+++ b/content/renderer/render_view_mouse_lock_dispatcher.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_RENDER_VIEW_MOUSE_LOCK_DISPATCHER_H_
+#define CONTENT_RENDERER_RENDER_VIEW_MOUSE_LOCK_DISPATCHER_H_
+#pragma once
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "content/public/renderer/render_view_observer.h"
+#include "content/renderer/mouse_lock_dispatcher.h"
+
+class RenderViewImpl;
+
+// RenderViewMouseLockDispatcher is owned by RenderViewImpl.
+class RenderViewMouseLockDispatcher : public MouseLockDispatcher,
+ public content::RenderViewObserver {
+ public:
+ explicit RenderViewMouseLockDispatcher(RenderViewImpl* render_view_impl);
+ virtual ~RenderViewMouseLockDispatcher();
+
+ private:
+ // MouseLockDispatcher implementation.
+ virtual void SendLockMouseRequest(bool unlocked_by_target) OVERRIDE;
+ virtual void SendUnlockMouseRequest() OVERRIDE;
+
+ // RenderView::Observer implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ void OnMsgLockMouseACK(bool succeeded);
+
+ RenderViewImpl* render_view_impl_;
+
+ DISALLOW_COPY_AND_ASSIGN(RenderViewMouseLockDispatcher);
+};
+
+#endif // CONTENT_RENDERER_RENDER_VIEW_MOUSE_LOCK_DISPATCHER_H_
« no previous file with comments | « content/renderer/render_view_impl.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