| 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_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
| 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 shell::InterfaceRegistry* GetInterfaceRegistry() override; | 87 shell::InterfaceRegistry* GetInterfaceRegistry() override; |
| 88 shell::InterfaceProvider* GetRemoteInterfaces() override; | 88 shell::InterfaceProvider* GetRemoteInterfaces() override; |
| 89 | 89 |
| 90 ////////////////////////////////////////////////////////////////////////// | 90 ////////////////////////////////////////////////////////////////////////// |
| 91 // The following functions are called by the test itself. | 91 // The following functions are called by the test itself. |
| 92 | 92 |
| 93 void set_routing_id(int32_t id) { routing_id_ = id; } | 93 void set_routing_id(int32_t id) { routing_id_ = id; } |
| 94 | 94 |
| 95 int32_t opener_id() const { return opener_id_; } | 95 int32_t opener_id() const { return opener_id_; } |
| 96 | 96 |
| 97 int32_t new_window_routing_id() const { return new_window_routing_id_; } |
| 98 |
| 97 void set_new_window_routing_id(int32_t id) { new_window_routing_id_ = id; } | 99 void set_new_window_routing_id(int32_t id) { new_window_routing_id_ = id; } |
| 98 | 100 |
| 101 int32_t new_window_main_frame_routing_id() const { |
| 102 return new_window_main_frame_routing_id_; |
| 103 } |
| 104 |
| 105 void set_new_window_main_frame_routing_id(int32_t id) { |
| 106 new_window_main_frame_routing_id_ = id; |
| 107 } |
| 108 |
| 99 void set_new_window_main_frame_widget_routing_id(int32_t id) { | 109 void set_new_window_main_frame_widget_routing_id(int32_t id) { |
| 100 new_window_main_frame_widget_routing_id_ = id; | 110 new_window_main_frame_widget_routing_id_ = id; |
| 101 } | 111 } |
| 102 | 112 |
| 103 void set_new_frame_routing_id(int32_t id) { new_frame_routing_id_ = id; } | 113 void set_new_frame_routing_id(int32_t id) { new_frame_routing_id_ = id; } |
| 104 | 114 |
| 105 // Simulates the Widget receiving a close message. This should result | 115 // Simulates the Widget receiving a close message. This should result |
| 106 // on releasing the internal reference counts and destroying the internal | 116 // on releasing the internal reference counts and destroying the internal |
| 107 // state. | 117 // state. |
| 108 void SendCloseMessage(); | 118 void SendCloseMessage(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 cc::TestSharedBitmapManager shared_bitmap_manager_; | 173 cc::TestSharedBitmapManager shared_bitmap_manager_; |
| 164 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; | 174 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; |
| 165 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; | 175 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; |
| 166 shell::mojom::InterfaceProviderRequest | 176 shell::mojom::InterfaceProviderRequest |
| 167 pending_remote_interface_provider_request_; | 177 pending_remote_interface_provider_request_; |
| 168 }; | 178 }; |
| 169 | 179 |
| 170 } // namespace content | 180 } // namespace content |
| 171 | 181 |
| 172 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ | 182 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_THREAD_H_ |
| OLD | NEW |