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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 10443045: Silent mouse lock after unlock by target (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Update for silent mouse relock Created 8 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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/observer_list.h" 15 #include "base/observer_list.h"
16 #include "base/process_util.h" 16 #include "base/process_util.h"
17 #include "content/browser/renderer_host/render_widget_host_impl.h" 17 #include "content/browser/renderer_host/render_widget_host_impl.h"
18 #include "content/browser/site_instance_impl.h" 18 #include "content/browser/site_instance_impl.h"
19 #include "content/common/mouse_lock.h"
19 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
20 #include "content/public/browser/render_view_host.h" 21 #include "content/public/browser/render_view_host.h"
21 #include "content/public/common/window_container_type.h" 22 #include "content/public/common/window_container_type.h"
22 #include "net/base/load_states.h" 23 #include "net/base/load_states.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h"
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
26 #include "ui/base/javascript_message_type.h" 27 #include "ui/base/javascript_message_type.h"
27 #include "webkit/glue/webaccessibility.h" 28 #include "webkit/glue/webaccessibility.h"
28 #include "webkit/glue/window_open_disposition.h" 29 #include "webkit/glue/window_open_disposition.h"
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // Add and remove observers for filtering IPC messages. Clients must be sure 432 // Add and remove observers for filtering IPC messages. Clients must be sure
432 // to remove the observer before they go away. 433 // to remove the observer before they go away.
433 void AddObserver(RenderViewHostObserver* observer); 434 void AddObserver(RenderViewHostObserver* observer);
434 void RemoveObserver(RenderViewHostObserver* observer); 435 void RemoveObserver(RenderViewHostObserver* observer);
435 436
436 // RenderWidgetHost protected overrides. 437 // RenderWidgetHost protected overrides.
437 virtual void OnUserGesture() OVERRIDE; 438 virtual void OnUserGesture() OVERRIDE;
438 virtual void NotifyRendererUnresponsive() OVERRIDE; 439 virtual void NotifyRendererUnresponsive() OVERRIDE;
439 virtual void NotifyRendererResponsive() OVERRIDE; 440 virtual void NotifyRendererResponsive() OVERRIDE;
440 virtual void OnRenderAutoResized(const gfx::Size& size) OVERRIDE; 441 virtual void OnRenderAutoResized(const gfx::Size& size) OVERRIDE;
441 virtual void RequestToLockMouse(bool user_gesture) OVERRIDE; 442 virtual void RequestToLockMouse(
443 MouseLockSource lock_source,
444 MouseUnlockSource previous_unlock_source) OVERRIDE;
442 virtual bool IsFullscreen() const OVERRIDE; 445 virtual bool IsFullscreen() const OVERRIDE;
443 virtual void OnMsgFocus() OVERRIDE; 446 virtual void OnMsgFocus() OVERRIDE;
444 virtual void OnMsgBlur() OVERRIDE; 447 virtual void OnMsgBlur() OVERRIDE;
445 448
446 // IPC message handlers. 449 // IPC message handlers.
447 void OnMsgShowView(int route_id, 450 void OnMsgShowView(int route_id,
448 WindowOpenDisposition disposition, 451 WindowOpenDisposition disposition,
449 const gfx::Rect& initial_pos, 452 const gfx::Rect& initial_pos,
450 bool user_gesture); 453 bool user_gesture);
451 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos); 454 void OnMsgShowWidget(int route_id, const gfx::Rect& initial_pos);
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 656 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
654 }; 657 };
655 658
656 #if defined(COMPILER_MSVC) 659 #if defined(COMPILER_MSVC)
657 #pragma warning(pop) 660 #pragma warning(pop)
658 #endif 661 #endif
659 662
660 } // namespace content 663 } // namespace content
661 664
662 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 665 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698