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

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

Issue 1292403004: Route browser reload command to DevTools if present. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months 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 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 closure.Run(); 1232 closure.Run();
1233 return; 1233 return;
1234 } 1234 }
1235 load_completed_callback_ = closure; 1235 load_completed_callback_ = closure;
1236 } 1236 }
1237 1237
1238 bool DevToolsWindow::ForwardKeyboardEvent( 1238 bool DevToolsWindow::ForwardKeyboardEvent(
1239 const content::NativeWebKeyboardEvent& event) { 1239 const content::NativeWebKeyboardEvent& event) {
1240 return event_forwarder_->ForwardEvent(event); 1240 return event_forwarder_->ForwardEvent(event);
1241 } 1241 }
1242
1243 void DevToolsWindow::ReloadInspectedWebContents(bool ignore_cache) {
1244 base::FundamentalValue ignore_cache_value(ignore_cache);
1245 bindings_->CallClientFunction("DevToolsAPI.reload",
pfeldman 2015/08/14 18:40:40 requestReload? reloadInspectedPage?
dgozman 2015/08/14 23:57:34 reloadInspectedPage.
1246 &ignore_cache_value, nullptr, nullptr);
1247 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698