| 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 <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 462 | 462 |
| 463 #if defined(OS_WIN) | 463 #if defined(OS_WIN) |
| 464 gfx::NativeViewAccessible GetParentNativeViewAccessible(); | 464 gfx::NativeViewAccessible GetParentNativeViewAccessible(); |
| 465 #endif | 465 #endif |
| 466 | 466 |
| 467 void set_renderer_initialized(bool renderer_initialized) { | 467 void set_renderer_initialized(bool renderer_initialized) { |
| 468 renderer_initialized_ = renderer_initialized; | 468 renderer_initialized_ = renderer_initialized; |
| 469 } | 469 } |
| 470 | 470 |
| 471 protected: | 471 protected: |
| 472 RenderWidgetHostImpl* AsRenderWidgetHostImpl() override; | |
| 473 | |
| 474 // Called when we receive a notification indicating that the renderer | 472 // Called when we receive a notification indicating that the renderer |
| 475 // process has gone. This will reset our state so that our state will be | 473 // process has gone. This will reset our state so that our state will be |
| 476 // consistent if a new renderer is created. | 474 // consistent if a new renderer is created. |
| 477 void RendererExited(base::TerminationStatus status, int exit_code); | 475 void RendererExited(base::TerminationStatus status, int exit_code); |
| 478 | 476 |
| 479 // Retrieves an id the renderer can use to refer to its view. | 477 // Retrieves an id the renderer can use to refer to its view. |
| 480 // This is used for various IPC messages, including plugins. | 478 // This is used for various IPC messages, including plugins. |
| 481 gfx::NativeViewId GetNativeViewId() const; | 479 gfx::NativeViewId GetNativeViewId() const; |
| 482 | 480 |
| 483 // --------------------------------------------------------------------------- | 481 // --------------------------------------------------------------------------- |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 bool is_focused_; | 841 bool is_focused_; |
| 844 | 842 |
| 845 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 843 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
| 846 | 844 |
| 847 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 845 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
| 848 }; | 846 }; |
| 849 | 847 |
| 850 } // namespace content | 848 } // namespace content |
| 851 | 849 |
| 852 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 850 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
| OLD | NEW |