Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: chrome/browser/devtools/devtools_window.cc

Issue 2497033002: Break apart WebGestureEvent from WebInputEvent. (Closed)
Patch Set: Rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "content/public/browser/navigation_entry.h" 44 #include "content/public/browser/navigation_entry.h"
45 #include "content/public/browser/render_frame_host.h" 45 #include "content/public/browser/render_frame_host.h"
46 #include "content/public/browser/render_process_host.h" 46 #include "content/public/browser/render_process_host.h"
47 #include "content/public/browser/render_view_host.h" 47 #include "content/public/browser/render_view_host.h"
48 #include "content/public/browser/render_widget_host_view.h" 48 #include "content/public/browser/render_widget_host_view.h"
49 #include "content/public/browser/user_metrics.h" 49 #include "content/public/browser/user_metrics.h"
50 #include "content/public/browser/web_contents.h" 50 #include "content/public/browser/web_contents.h"
51 #include "content/public/common/content_client.h" 51 #include "content/public/common/content_client.h"
52 #include "content/public/common/url_constants.h" 52 #include "content/public/common/url_constants.h"
53 #include "net/base/escape.h" 53 #include "net/base/escape.h"
54 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
55 #include "third_party/WebKit/public/platform/WebInputEvent.h"
54 #include "third_party/WebKit/public/public_features.h" 56 #include "third_party/WebKit/public/public_features.h"
55 #include "third_party/WebKit/public/web/WebInputEvent.h"
56 #include "ui/base/page_transition_types.h" 57 #include "ui/base/page_transition_types.h"
57 #include "ui/events/keycodes/dom/keycode_converter.h" 58 #include "ui/events/keycodes/dom/keycode_converter.h"
58 #include "ui/events/keycodes/keyboard_code_conversion.h" 59 #include "ui/events/keycodes/keyboard_code_conversion.h"
59 #include "ui/events/keycodes/keyboard_codes.h" 60 #include "ui/events/keycodes/keyboard_codes.h"
60 61
61 using base::DictionaryValue; 62 using base::DictionaryValue;
62 using blink::WebInputEvent; 63 using blink::WebInputEvent;
63 using content::BrowserThread; 64 using content::BrowserThread;
64 using content::DevToolsAgentHost; 65 using content::DevToolsAgentHost;
65 using content::WebContents; 66 using content::WebContents;
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 bool DevToolsWindow::ReloadInspectedWebContents(bool bypass_cache) { 1382 bool DevToolsWindow::ReloadInspectedWebContents(bool bypass_cache) {
1382 // Only route reload via front-end if the agent is attached. 1383 // Only route reload via front-end if the agent is attached.
1383 WebContents* wc = GetInspectedWebContents(); 1384 WebContents* wc = GetInspectedWebContents();
1384 if (!wc || wc->GetCrashedStatus() != base::TERMINATION_STATUS_STILL_RUNNING) 1385 if (!wc || wc->GetCrashedStatus() != base::TERMINATION_STATUS_STILL_RUNNING)
1385 return false; 1386 return false;
1386 base::FundamentalValue bypass_cache_value(bypass_cache); 1387 base::FundamentalValue bypass_cache_value(bypass_cache);
1387 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage", 1388 bindings_->CallClientFunction("DevToolsAPI.reloadInspectedPage",
1388 &bypass_cache_value, nullptr, nullptr); 1389 &bypass_cache_value, nullptr, nullptr);
1389 return true; 1390 return true;
1390 } 1391 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698