Index: content/test/mock_render_thread.h |
diff --git a/content/test/mock_render_thread.h b/content/test/mock_render_thread.h |
index 3d87ed084ff02504912beaf25048d2f79231dda5..a6f0fe5d3dd5fab42cd2611a5e8121be3cf4b4c3 100644 |
--- a/content/test/mock_render_thread.h |
+++ b/content/test/mock_render_thread.h |
@@ -78,6 +78,10 @@ class MockRenderThread : public content::RenderThread { |
routing_id_ = id; |
} |
+ void set_surface_id(int32 id) { |
+ surface_id_ = id; |
+ } |
+ |
int32 opener_id() const { |
return opener_id_; |
} |
@@ -99,7 +103,8 @@ class MockRenderThread : public content::RenderThread { |
// The Widget expects to be returned valid route_id. |
void OnMsgCreateWidget(int opener_id, |
WebKit::WebPopupType popup_type, |
- int* route_id); |
+ int* route_id, |
+ int* surface_id); |
#if defined(OS_WIN) |
void OnDuplicateSection(base::SharedMemoryHandle renderer_handle, |
@@ -111,6 +116,9 @@ class MockRenderThread : public content::RenderThread { |
// Routing id what will be assigned to the Widget. |
int32 routing_id_; |
+ // Surface id what will be assigned to the Widget. |
+ int32 surface_id_; |
+ |
// Opener id reported by the Widget. |
int32 opener_id_; |