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

Side by Side Diff: content/browser/renderer_host/render_widget_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: 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_WIDGET_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <string> 10 #include <string>
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 400
401 // Called when auto-resize resulted in the renderer size changing. 401 // Called when auto-resize resulted in the renderer size changing.
402 virtual void OnRenderAutoResized(const gfx::Size& new_size) {} 402 virtual void OnRenderAutoResized(const gfx::Size& new_size) {}
403 403
404 // --------------------------------------------------------------------------- 404 // ---------------------------------------------------------------------------
405 405
406 // RenderViewHost overrides this method to impose further restrictions on when 406 // RenderViewHost overrides this method to impose further restrictions on when
407 // to allow mouse lock. 407 // to allow mouse lock.
408 // Once the request is approved or rejected, GotResponseToLockMouseRequest() 408 // Once the request is approved or rejected, GotResponseToLockMouseRequest()
409 // will be called. 409 // will be called.
410 virtual void RequestToLockMouse(bool user_gesture); 410 virtual void RequestToLockMouse(bool user_gesture,
jochen (gone - plz use gerrit) 2012/05/25 21:53:46 the fact that this requires the presence of a RVH
scheib 2012/05/26 01:12:34 Currently this is only used by web pages containin
411 bool after_unlocked_by_target);
411 412
412 void RejectMouseLockOrUnlockIfNecessary(); 413 void RejectMouseLockOrUnlockIfNecessary();
413 bool IsMouseLocked() const; 414 bool IsMouseLocked() const;
414 415
415 // RenderViewHost overrides this method to report when in fullscreen mode. 416 // RenderViewHost overrides this method to report when in fullscreen mode.
416 virtual bool IsFullscreen() const; 417 virtual bool IsFullscreen() const;
417 418
418 // Indicates if the render widget host should track the render widget's size 419 // Indicates if the render widget host should track the render widget's size
419 // as opposed to visa versa. 420 // as opposed to visa versa.
420 void SetShouldAutoResize(bool enable); 421 void SetShouldAutoResize(bool enable);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 void OnMsgDidChangeNumTouchEvents(int count); 477 void OnMsgDidChangeNumTouchEvents(int count);
477 478
478 void OnMsgSetCursor(const WebCursor& cursor); 479 void OnMsgSetCursor(const WebCursor& cursor);
479 void OnMsgTextInputStateChanged(ui::TextInputType type, 480 void OnMsgTextInputStateChanged(ui::TextInputType type,
480 bool can_compose_inline); 481 bool can_compose_inline);
481 void OnMsgImeCompositionRangeChanged(const ui::Range& range); 482 void OnMsgImeCompositionRangeChanged(const ui::Range& range);
482 void OnMsgImeCancelComposition(); 483 void OnMsgImeCancelComposition();
483 484
484 void OnMsgDidActivateAcceleratedCompositing(bool activated); 485 void OnMsgDidActivateAcceleratedCompositing(bool activated);
485 486
486 void OnMsgLockMouse(bool user_gesture); 487 void OnMsgLockMouse(bool user_gesture, bool after_unlocked_by_target);
487 void OnMsgUnlockMouse(); 488 void OnMsgUnlockMouse();
488 489
489 #if defined(OS_POSIX) || defined(USE_AURA) 490 #if defined(OS_POSIX) || defined(USE_AURA)
490 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 491 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
491 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 492 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
492 #endif 493 #endif
493 #if defined(OS_MACOSX) 494 #if defined(OS_MACOSX)
494 void OnMsgPluginFocusChanged(bool focused, int plugin_id); 495 void OnMsgPluginFocusChanged(bool focused, int plugin_id);
495 void OnMsgStartPluginIme(); 496 void OnMsgStartPluginIme();
496 void OnAllocateFakePluginWindowHandle(bool opaque, 497 void OnAllocateFakePluginWindowHandle(bool opaque,
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 718 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
718 719
719 scoped_ptr<TapSuppressionController> tap_suppression_controller_; 720 scoped_ptr<TapSuppressionController> tap_suppression_controller_;
720 721
721 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 722 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
722 }; 723 };
723 724
724 } // namespace content 725 } // namespace content
725 726
726 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 727 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698