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

Side by Side 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: Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 void AddObserver(RenderViewHostObserver* observer); 422 void AddObserver(RenderViewHostObserver* observer);
423 void RemoveObserver(RenderViewHostObserver* observer); 423 void RemoveObserver(RenderViewHostObserver* observer);
424 424
425 // RenderWidgetHost protected overrides. 425 // RenderWidgetHost protected overrides.
426 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 426 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
427 bool* is_keyboard_shortcut); 427 bool* is_keyboard_shortcut);
428 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event); 428 virtual void UnhandledKeyboardEvent(const NativeWebKeyboardEvent& event);
429 virtual void OnUserGesture(); 429 virtual void OnUserGesture();
430 virtual void NotifyRendererUnresponsive(); 430 virtual void NotifyRendererUnresponsive();
431 virtual void NotifyRendererResponsive(); 431 virtual void NotifyRendererResponsive();
432 virtual bool HasMouseLockPermission() const;
sky 2011/09/28 22:58:04 OVERRIDE
yzshen1 2011/09/29 20:41:04 Done.
432 virtual void OnMsgFocus(); 433 virtual void OnMsgFocus();
433 virtual void OnMsgBlur(); 434 virtual void OnMsgBlur();
434 435
435 // IPC message handlers. 436 // IPC message handlers.
436 void OnMsgShowView(int route_id, 437 void OnMsgShowView(int route_id,
437 WindowOpenDisposition disposition, 438 WindowOpenDisposition disposition,
438 const gfx::Rect& initial_pos, 439 const gfx::Rect& initial_pos,
439 bool user_gesture); 440 bool user_gesture);
440 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); 441 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos);
441 void OnMsgShowFullscreenWidget(int route_id); 442 void OnMsgShowFullscreenWidget(int route_id);
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 // The termination status of the last render view that terminated. 592 // The termination status of the last render view that terminated.
592 base::TerminationStatus render_view_termination_status_; 593 base::TerminationStatus render_view_termination_status_;
593 594
594 // A list of observers that filter messages. Weak references. 595 // A list of observers that filter messages. Weak references.
595 ObserverList<RenderViewHostObserver> observers_; 596 ObserverList<RenderViewHostObserver> observers_;
596 597
597 DISALLOW_COPY_AND_ASSIGN(RenderViewHost); 598 DISALLOW_COPY_AND_ASSIGN(RenderViewHost);
598 }; 599 };
599 600
600 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_ 601 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698