OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "content/browser/devtools/protocol/emulation_handler.h" | 5 #include "content/browser/devtools/protocol/emulation_handler.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
| 8 #include "build/build_config.h" |
8 #include "content/browser/frame_host/render_frame_host_impl.h" | 9 #include "content/browser/frame_host/render_frame_host_impl.h" |
9 #include "content/browser/geolocation/geolocation_service_context.h" | 10 #include "content/browser/geolocation/geolocation_service_context.h" |
10 #include "content/browser/renderer_host/render_widget_host_impl.h" | 11 #include "content/browser/renderer_host/render_widget_host_impl.h" |
11 #include "content/browser/web_contents/web_contents_impl.h" | 12 #include "content/browser/web_contents/web_contents_impl.h" |
12 #include "content/common/view_messages.h" | 13 #include "content/common/view_messages.h" |
13 #include "content/public/common/url_constants.h" | 14 #include "content/public/common/url_constants.h" |
14 | 15 |
15 namespace content { | 16 namespace content { |
16 namespace devtools { | 17 namespace devtools { |
17 namespace emulation { | 18 namespace emulation { |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 widget_host->GetRoutingID(), device_emulation_params_)); | 228 widget_host->GetRoutingID(), device_emulation_params_)); |
228 } else { | 229 } else { |
229 widget_host->Send(new ViewMsg_DisableDeviceEmulation( | 230 widget_host->Send(new ViewMsg_DisableDeviceEmulation( |
230 widget_host->GetRoutingID())); | 231 widget_host->GetRoutingID())); |
231 } | 232 } |
232 } | 233 } |
233 | 234 |
234 } // namespace emulation | 235 } // namespace emulation |
235 } // namespace devtools | 236 } // namespace devtools |
236 } // namespace content | 237 } // namespace content |
OLD | NEW |