OLD | NEW |
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 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 | 471 |
472 InputRouter* input_router() { return input_router_.get(); } | 472 InputRouter* input_router() { return input_router_.get(); } |
473 | 473 |
474 // Get the BrowserAccessibilityManager for the root of the frame tree, | 474 // Get the BrowserAccessibilityManager for the root of the frame tree, |
475 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); | 475 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); |
476 | 476 |
477 // Get the BrowserAccessibilityManager for the root of the frame tree, | 477 // Get the BrowserAccessibilityManager for the root of the frame tree, |
478 // or create it if it doesn't already exist. | 478 // or create it if it doesn't already exist. |
479 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager(); | 479 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager(); |
480 | 480 |
| 481 void RejectMouseLockOrUnlockIfNecessary(); |
| 482 |
481 #if defined(OS_WIN) | 483 #if defined(OS_WIN) |
482 gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 484 gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
483 #endif | 485 #endif |
484 | 486 |
485 protected: | 487 protected: |
486 RenderWidgetHostImpl* AsRenderWidgetHostImpl() override; | 488 RenderWidgetHostImpl* AsRenderWidgetHostImpl() override; |
487 | 489 |
488 // Called when we receive a notification indicating that the renderer | 490 // Called when we receive a notification indicating that the renderer |
489 // process has gone. This will reset our state so that our state will be | 491 // process has gone. This will reset our state so that our state will be |
490 // consistent if a new renderer is created. | 492 // consistent if a new renderer is created. |
(...skipping 29 matching lines...) Expand all Loading... |
520 | 522 |
521 // --------------------------------------------------------------------------- | 523 // --------------------------------------------------------------------------- |
522 | 524 |
523 // RenderViewHost overrides this method to impose further restrictions on when | 525 // RenderViewHost overrides this method to impose further restrictions on when |
524 // to allow mouse lock. | 526 // to allow mouse lock. |
525 // Once the request is approved or rejected, GotResponseToLockMouseRequest() | 527 // Once the request is approved or rejected, GotResponseToLockMouseRequest() |
526 // will be called. | 528 // will be called. |
527 virtual void RequestToLockMouse(bool user_gesture, | 529 virtual void RequestToLockMouse(bool user_gesture, |
528 bool last_unlocked_by_target); | 530 bool last_unlocked_by_target); |
529 | 531 |
530 void RejectMouseLockOrUnlockIfNecessary(); | |
531 bool IsMouseLocked() const; | 532 bool IsMouseLocked() const; |
532 | 533 |
533 // RenderViewHost overrides this method to report when in fullscreen mode. | 534 // RenderViewHost overrides this method to report when in fullscreen mode. |
534 virtual bool IsFullscreen() const; | 535 virtual bool IsFullscreen() const; |
535 | 536 |
536 // Indicates if the render widget host should track the render widget's size | 537 // Indicates if the render widget host should track the render widget's size |
537 // as opposed to visa versa. | 538 // as opposed to visa versa. |
538 void SetAutoResize(bool enable, | 539 void SetAutoResize(bool enable, |
539 const gfx::Size& min_size, | 540 const gfx::Size& min_size, |
540 const gfx::Size& max_size); | 541 const gfx::Size& max_size); |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 PendingSnapshotMap pending_browser_snapshots_; | 827 PendingSnapshotMap pending_browser_snapshots_; |
827 | 828 |
828 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 829 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
829 | 830 |
830 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 831 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
831 }; | 832 }; |
832 | 833 |
833 } // namespace content | 834 } // namespace content |
834 | 835 |
835 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 836 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |