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

Unified Diff: content/browser/renderer_host/render_view_host.h

Issue 8072011: Only allow to lock the mouse when the tab is in fullscreen mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make changes in response to review comments & sync. Created 9 years, 3 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 | « chrome/browser/ui/browser.cc ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host.h
diff --git a/content/browser/renderer_host/render_view_host.h b/content/browser/renderer_host/render_view_host.h
index 582c9186140f2787a958fbd77aeac086ed3dc266..00d25a04ba0b7b563b9bb0b8c413cc5ad96492d4 100644
--- a/content/browser/renderer_host/render_view_host.h
+++ b/content/browser/renderer_host/render_view_host.h
@@ -9,6 +9,7 @@
#include <string>
#include <vector>
+#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
@@ -325,14 +326,16 @@ class CONTENT_EXPORT RenderViewHost : public RenderWidgetHost {
}
// RenderWidgetHost public overrides.
- virtual void Shutdown();
- virtual bool IsRenderView() const;
- virtual bool OnMessageReceived(const IPC::Message& msg);
- virtual void GotFocus();
- virtual void LostCapture();
- virtual void ForwardMouseEvent(const WebKit::WebMouseEvent& mouse_event);
- virtual void OnMouseActivate();
- virtual void ForwardKeyboardEvent(const NativeWebKeyboardEvent& key_event);
+ virtual void Shutdown() OVERRIDE;
+ virtual bool IsRenderView() const OVERRIDE;
+ virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
+ virtual void GotFocus() OVERRIDE;
+ virtual void LostCapture() OVERRIDE;
+ virtual void ForwardMouseEvent(
+ const WebKit::WebMouseEvent& mouse_event) OVERRIDE;
+ virtual void OnMouseActivate() OVERRIDE;
+ virtual void ForwardKeyboardEvent(
+ const NativeWebKeyboardEvent& key_event) OVERRIDE;
// Creates a new RenderView with the given route id.
void CreateNewWindow(int route_id,
@@ -453,13 +456,15 @@ class CONTENT_EXPORT RenderViewHost : public RenderWidgetHost {
// RenderWidgetHost protected overrides.
virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
- bool* is_keyboard_shortcut);
- virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event);
- virtual void OnUserGesture();
- virtual void NotifyRendererUnresponsive();
- virtual void NotifyRendererResponsive();
- virtual void OnMsgFocus();
- virtual void OnMsgBlur();
+ bool* is_keyboard_shortcut) OVERRIDE;
+ virtual void UnhandledKeyboardEvent(
+ const NativeWebKeyboardEvent& event) OVERRIDE;
+ virtual void OnUserGesture() OVERRIDE;
+ virtual void NotifyRendererUnresponsive() OVERRIDE;
+ virtual void NotifyRendererResponsive() OVERRIDE;
+ virtual bool CanLockMouse() const OVERRIDE;
+ virtual void OnMsgFocus() OVERRIDE;
+ virtual void OnMsgBlur() OVERRIDE;
// IPC message handlers.
void OnMsgShowView(int route_id,
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | content/browser/renderer_host/render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698