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

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

Issue 10173030: User Gesture plumbed from Renderer to Browser's FullscreenController::RequestToLockMouse. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yzshen nits fixed. Created 8 years, 8 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) 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 402
403 // Called when auto-resize resulted in the renderer size changing. 403 // Called when auto-resize resulted in the renderer size changing.
404 virtual void OnRenderAutoResized(const gfx::Size& new_size) {} 404 virtual void OnRenderAutoResized(const gfx::Size& new_size) {}
405 405
406 // --------------------------------------------------------------------------- 406 // ---------------------------------------------------------------------------
407 407
408 // RenderViewHost overrides this method to impose further restrictions on when 408 // RenderViewHost overrides this method to impose further restrictions on when
409 // to allow mouse lock. 409 // to allow mouse lock.
410 // Once the request is approved or rejected, GotResponseToLockMouseRequest() 410 // Once the request is approved or rejected, GotResponseToLockMouseRequest()
411 // will be called. 411 // will be called.
412 virtual void RequestToLockMouse(); 412 virtual void RequestToLockMouse(bool user_gesture);
413 413
414 void RejectMouseLockOrUnlockIfNecessary(); 414 void RejectMouseLockOrUnlockIfNecessary();
415 bool IsMouseLocked() const; 415 bool IsMouseLocked() const;
416 416
417 // RenderViewHost overrides this method to report when in fullscreen mode. 417 // RenderViewHost overrides this method to report when in fullscreen mode.
418 virtual bool IsFullscreen() const; 418 virtual bool IsFullscreen() const;
419 419
420 // Indicates if the render widget host should track the render widget's size 420 // Indicates if the render widget host should track the render widget's size
421 // as opposed to visa versa. 421 // as opposed to visa versa.
422 void SetShouldAutoResize(bool enable); 422 void SetShouldAutoResize(bool enable);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 void OnMsgDidChangeNumTouchEvents(int count); 474 void OnMsgDidChangeNumTouchEvents(int count);
475 475
476 void OnMsgSetCursor(const WebCursor& cursor); 476 void OnMsgSetCursor(const WebCursor& cursor);
477 void OnMsgTextInputStateChanged(ui::TextInputType type, 477 void OnMsgTextInputStateChanged(ui::TextInputType type,
478 bool can_compose_inline); 478 bool can_compose_inline);
479 void OnMsgImeCompositionRangeChanged(const ui::Range& range); 479 void OnMsgImeCompositionRangeChanged(const ui::Range& range);
480 void OnMsgImeCancelComposition(); 480 void OnMsgImeCancelComposition();
481 481
482 void OnMsgDidActivateAcceleratedCompositing(bool activated); 482 void OnMsgDidActivateAcceleratedCompositing(bool activated);
483 483
484 void OnMsgLockMouse(); 484 void OnMsgLockMouse(bool user_gesture);
485 void OnMsgUnlockMouse(); 485 void OnMsgUnlockMouse();
486 486
487 #if defined(OS_POSIX) || defined(USE_AURA) 487 #if defined(OS_POSIX) || defined(USE_AURA)
488 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 488 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
489 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); 489 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results);
490 #endif 490 #endif
491 #if defined(OS_MACOSX) 491 #if defined(OS_MACOSX)
492 void OnMsgPluginFocusChanged(bool focused, int plugin_id); 492 void OnMsgPluginFocusChanged(bool focused, int plugin_id);
493 void OnMsgStartPluginIme(); 493 void OnMsgStartPluginIme();
494 void OnAllocateFakePluginWindowHandle(bool opaque, 494 void OnAllocateFakePluginWindowHandle(bool opaque,
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 709 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
710 710
711 scoped_ptr<TapSuppressionController> tap_suppression_controller_; 711 scoped_ptr<TapSuppressionController> tap_suppression_controller_;
712 712
713 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 713 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
714 }; 714 };
715 715
716 } // namespace content 716 } // namespace content
717 717
718 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 718 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698