| 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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 475 | 475 |
| 476 // Get the BrowserAccessibilityManager for the root of the frame tree, | 476 // Get the BrowserAccessibilityManager for the root of the frame tree, |
| 477 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); | 477 BrowserAccessibilityManager* GetRootBrowserAccessibilityManager(); |
| 478 | 478 |
| 479 // Get the BrowserAccessibilityManager for the root of the frame tree, | 479 // Get the BrowserAccessibilityManager for the root of the frame tree, |
| 480 // or create it if it doesn't already exist. | 480 // or create it if it doesn't already exist. |
| 481 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager(); | 481 BrowserAccessibilityManager* GetOrCreateRootBrowserAccessibilityManager(); |
| 482 | 482 |
| 483 void RejectMouseLockOrUnlockIfNecessary(); | 483 void RejectMouseLockOrUnlockIfNecessary(); |
| 484 | 484 |
| 485 bool is_focused() const { return is_focused_; } |
| 486 |
| 485 #if defined(OS_WIN) | 487 #if defined(OS_WIN) |
| 486 gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 488 gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 487 #endif | 489 #endif |
| 488 | 490 |
| 489 protected: | 491 protected: |
| 490 RenderWidgetHostImpl* AsRenderWidgetHostImpl() override; | 492 RenderWidgetHostImpl* AsRenderWidgetHostImpl() override; |
| 491 | 493 |
| 492 // Called when we receive a notification indicating that the renderer | 494 // Called when we receive a notification indicating that the renderer |
| 493 // process has gone. This will reset our state so that our state will be | 495 // process has gone. This will reset our state so that our state will be |
| 494 // consistent if a new renderer is created. | 496 // consistent if a new renderer is created. |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 std::list<HWND> dummy_windows_for_activation_; | 823 std::list<HWND> dummy_windows_for_activation_; |
| 822 #endif | 824 #endif |
| 823 | 825 |
| 824 RenderWidgetHostLatencyTracker latency_tracker_; | 826 RenderWidgetHostLatencyTracker latency_tracker_; |
| 825 | 827 |
| 826 int next_browser_snapshot_id_; | 828 int next_browser_snapshot_id_; |
| 827 typedef std::map<int, | 829 typedef std::map<int, |
| 828 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; | 830 base::Callback<void(const unsigned char*, size_t)> > PendingSnapshotMap; |
| 829 PendingSnapshotMap pending_browser_snapshots_; | 831 PendingSnapshotMap pending_browser_snapshots_; |
| 830 | 832 |
| 833 bool is_focused_; |
| 834 |
| 831 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 835 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 832 | 836 |
| 833 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 837 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 834 }; | 838 }; |
| 835 | 839 |
| 836 } // namespace content | 840 } // namespace content |
| 837 | 841 |
| 838 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 842 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |