| 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_RENDERER_RENDER_WIDGET_H_ |    5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ | 
|    6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |    6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 
|    7  |    7  | 
|    8 #include <stddef.h> |    8 #include <stddef.h> | 
|    9 #include <stdint.h> |    9 #include <stdint.h> | 
|   10  |   10  | 
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  119                               blink::WebPopupType popup_type, |  119                               blink::WebPopupType popup_type, | 
|  120                               const blink::WebScreenInfo& screen_info); |  120                               const blink::WebScreenInfo& screen_info); | 
|  121  |  121  | 
|  122   // Creates a new RenderWidget that will be attached to a RenderFrame. |  122   // Creates a new RenderWidget that will be attached to a RenderFrame. | 
|  123   static RenderWidget* CreateForFrame(int routing_id, |  123   static RenderWidget* CreateForFrame(int routing_id, | 
|  124                                       bool hidden, |  124                                       bool hidden, | 
|  125                                       const blink::WebScreenInfo& screen_info, |  125                                       const blink::WebScreenInfo& screen_info, | 
|  126                                       CompositorDependencies* compositor_deps, |  126                                       CompositorDependencies* compositor_deps, | 
|  127                                       blink::WebLocalFrame* frame); |  127                                       blink::WebLocalFrame* frame); | 
|  128  |  128  | 
 |  129   // Used by content_layouttest_support to hook into the creation of | 
 |  130   // RenderWidgets. | 
 |  131   using CreateRenderWidgetFunction = | 
 |  132       RenderWidget* (*)(CompositorDependencies*, | 
 |  133                         blink::WebPopupType, | 
 |  134                         const blink::WebScreenInfo&, | 
 |  135                         bool, | 
 |  136                         bool, | 
 |  137                         bool); | 
 |  138   using RenderWidgetInitializedCallback = void (*)(RenderWidget*); | 
 |  139   static void InstallCreateHook( | 
 |  140       CreateRenderWidgetFunction create_render_widget, | 
 |  141       RenderWidgetInitializedCallback render_widget_initialized_callback); | 
 |  142  | 
|  129   // Closes a RenderWidget that was created by |CreateForFrame|. |  143   // Closes a RenderWidget that was created by |CreateForFrame|. | 
|  130   // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. |  144   // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. | 
|  131   // https://crbug.com/545684 |  145   // https://crbug.com/545684 | 
|  132   virtual void CloseForFrame(); |  146   virtual void CloseForFrame(); | 
|  133  |  147  | 
|  134   int32_t routing_id() const { return routing_id_; } |  148   int32_t routing_id() const { return routing_id_; } | 
|  135   void SetRoutingID(int32_t routing_id); |  149   void SetRoutingID(int32_t routing_id); | 
|  136  |  150  | 
|  137   CompositorDependencies* compositor_deps() const { return compositor_deps_; } |  151   CompositorDependencies* compositor_deps() const { return compositor_deps_; } | 
|  138   blink::WebWidget* webwidget() const { return webwidget_; } |  152   blink::WebWidget* webwidget() const { return webwidget_; } | 
| (...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  790   // This reference is set by the RenderFrame and is used to query the IME- |  804   // This reference is set by the RenderFrame and is used to query the IME- | 
|  791   // related state from the plugin to later send to the browser. |  805   // related state from the plugin to later send to the browser. | 
|  792   PepperPluginInstanceImpl* focused_pepper_plugin_; |  806   PepperPluginInstanceImpl* focused_pepper_plugin_; | 
|  793  |  807  | 
|  794   DISALLOW_COPY_AND_ASSIGN(RenderWidget); |  808   DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 
|  795 }; |  809 }; | 
|  796  |  810  | 
|  797 }  // namespace content |  811 }  // namespace content | 
|  798  |  812  | 
|  799 #endif  // CONTENT_RENDERER_RENDER_WIDGET_H_ |  813 #endif  // CONTENT_RENDERER_RENDER_WIDGET_H_ | 
| OLD | NEW |