| 147 | }; |
| 148 | |
| 149 | struct DevToolsClient : CefRefCount<cef_client_t> |
| 150 | { |
| 151 | int parent_id_; |
| 152 | |
| 153 | DevToolsClient(int parent_id) |
| 154 | : CefRefCount(this) |
| 155 | , parent_id_(parent_id) |
| 156 | { |
| 157 | cef_bind_method(DevToolsClient, get_life_span_handler); |
| 158 | cef_bind_method(DevToolsClient, get_keyboard_handler); |
| 159 | } |
| 160 | |
| 161 | cef_life_span_handler_t *_get_life_span_handler() |
| 162 | { |
| 163 | return new DevToolsLifeSpan(parent_id_); |
| 164 | } |
| 165 | |
| 166 | cef_keyboard_handler_t *_get_keyboard_handler() |
| 167 | { |
| 168 | return new DevToolsKeyboardHandler(); |
| 169 | } |
| 170 | }; |
| 171 | |
| 172 | void browser::open_devtools(cef_browser_t *browser) |
| 173 | { |
nothing calls this directly
no outgoing calls
no test coverage detected