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

Side by Side Diff: chrome/browser/renderer_host/render_view_host.cc

Issue 50009: Allow different types of devtools client (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/debugger/devtools_window_win.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/renderer_host/render_view_host.h" 5 #include "chrome/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/gfx/native_widget_types.h" 10 #include "base/gfx/native_widget_types.h"
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1187 } 1187 }
1188 1188
1189 void RenderViewHost::DidDebugAttach() { 1189 void RenderViewHost::DidDebugAttach() {
1190 if (!debugger_attached_) { 1190 if (!debugger_attached_) {
1191 debugger_attached_ = true; 1191 debugger_attached_ = true;
1192 g_browser_process->debugger_wrapper()->OnDebugAttach(); 1192 g_browser_process->debugger_wrapper()->OnDebugAttach();
1193 } 1193 }
1194 } 1194 }
1195 1195
1196 void RenderViewHost::OnForwardToDevToolsAgent(const IPC::Message& message) { 1196 void RenderViewHost::OnForwardToDevToolsAgent(const IPC::Message& message) {
1197 g_browser_process->devtools_manager()->ForwardToDevToolsAgent(this, message); 1197 g_browser_process->devtools_manager()->ForwardToDevToolsAgent(*this, message);
1198 } 1198 }
1199 1199
1200 void RenderViewHost::OnForwardToDevToolsClient(const IPC::Message& message) { 1200 void RenderViewHost::OnForwardToDevToolsClient(const IPC::Message& message) {
1201 g_browser_process->devtools_manager()->ForwardToDevToolsClient(this, message); 1201 g_browser_process->devtools_manager()->ForwardToDevToolsClient(*this,
1202 message);
1202 } 1203 }
1203 1204
1204 void RenderViewHost::OnUserMetricsRecordAction(const std::wstring& action) { 1205 void RenderViewHost::OnUserMetricsRecordAction(const std::wstring& action) {
1205 UserMetrics::RecordComputedAction(action.c_str(), process()->profile()); 1206 UserMetrics::RecordComputedAction(action.c_str(), process()->profile());
1206 } 1207 }
1207 1208
1208 void RenderViewHost::UnhandledKeyboardEvent( 1209 void RenderViewHost::UnhandledKeyboardEvent(
1209 const NativeWebKeyboardEvent& event) { 1210 const NativeWebKeyboardEvent& event) {
1210 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1211 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1211 if (view) { 1212 if (view) {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1338 Send(new ViewMsg_PersonalizationEvent(routing_id(), event_name, event_arg)); 1339 Send(new ViewMsg_PersonalizationEvent(routing_id(), event_name, event_arg));
1339 } 1340 }
1340 #endif 1341 #endif
1341 1342
1342 void RenderViewHost::ForwardMessageFromExternalHost(const std::string& message, 1343 void RenderViewHost::ForwardMessageFromExternalHost(const std::string& message,
1343 const std::string& origin, 1344 const std::string& origin,
1344 const std::string& target) { 1345 const std::string& target) {
1345 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id(), message, origin, 1346 Send(new ViewMsg_HandleMessageFromExternalHost(routing_id(), message, origin,
1346 target)); 1347 target));
1347 } 1348 }
OLDNEW
« no previous file with comments | « chrome/browser/debugger/devtools_window_win.cc ('k') | chrome/chrome.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698