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