| 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 #include "chrome/browser/devtools/devtools_window.h" | 5 #include "chrome/browser/devtools/devtools_window.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/json/json_reader.h" | 10 #include "base/json/json_reader.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "content/public/browser/render_widget_host_view.h" | 47 #include "content/public/browser/render_widget_host_view.h" |
| 48 #include "content/public/browser/user_metrics.h" | 48 #include "content/public/browser/user_metrics.h" |
| 49 #include "content/public/browser/web_contents.h" | 49 #include "content/public/browser/web_contents.h" |
| 50 #include "content/public/common/content_client.h" | 50 #include "content/public/common/content_client.h" |
| 51 #include "content/public/common/url_constants.h" | 51 #include "content/public/common/url_constants.h" |
| 52 #include "net/base/escape.h" | 52 #include "net/base/escape.h" |
| 53 #include "third_party/WebKit/public/web/WebInputEvent.h" | 53 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 54 #include "ui/base/page_transition_types.h" | 54 #include "ui/base/page_transition_types.h" |
| 55 #include "ui/events/keycodes/keyboard_code_conversion.h" | 55 #include "ui/events/keycodes/keyboard_code_conversion.h" |
| 56 #include "ui/events/keycodes/keyboard_codes.h" | 56 #include "ui/events/keycodes/keyboard_codes.h" |
| 57 #include "ui/gfx/host_desktop_type.h" |
| 57 | 58 |
| 58 using base::DictionaryValue; | 59 using base::DictionaryValue; |
| 59 using blink::WebInputEvent; | 60 using blink::WebInputEvent; |
| 60 using content::BrowserThread; | 61 using content::BrowserThread; |
| 61 using content::DevToolsAgentHost; | 62 using content::DevToolsAgentHost; |
| 62 using content::WebContents; | 63 using content::WebContents; |
| 63 | 64 |
| 64 namespace { | 65 namespace { |
| 65 | 66 |
| 66 typedef std::vector<DevToolsWindow*> DevToolsWindows; | 67 typedef std::vector<DevToolsWindow*> DevToolsWindows; |
| (...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1261 bool DevToolsWindow::ForwardKeyboardEvent( | 1262 bool DevToolsWindow::ForwardKeyboardEvent( |
| 1262 const content::NativeWebKeyboardEvent& event) { | 1263 const content::NativeWebKeyboardEvent& event) { |
| 1263 return event_forwarder_->ForwardEvent(event); | 1264 return event_forwarder_->ForwardEvent(event); |
| 1264 } | 1265 } |
| 1265 | 1266 |
| 1266 void DevToolsWindow::ReloadInspectedWebContents(bool ignore_cache) { | 1267 void DevToolsWindow::ReloadInspectedWebContents(bool ignore_cache) { |
| 1267 base::FundamentalValue ignore_cache_value(ignore_cache); | 1268 base::FundamentalValue ignore_cache_value(ignore_cache); |
| 1268 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage", | 1269 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage", |
| 1269 &ignore_cache_value, nullptr, nullptr); | 1270 &ignore_cache_value, nullptr, nullptr); |
| 1270 } | 1271 } |
| OLD | NEW |