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

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

Issue 343075: DevTools: support cross-navigation instrumentation. (Closed)
Patch Set: '' Created 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after
801 IPC_MESSAGE_HANDLER(ViewHostMsg_ActivateDevToolsWindow, 801 IPC_MESSAGE_HANDLER(ViewHostMsg_ActivateDevToolsWindow,
802 OnActivateDevToolsWindow); 802 OnActivateDevToolsWindow);
803 IPC_MESSAGE_HANDLER(ViewHostMsg_CloseDevToolsWindow, 803 IPC_MESSAGE_HANDLER(ViewHostMsg_CloseDevToolsWindow,
804 OnCloseDevToolsWindow); 804 OnCloseDevToolsWindow);
805 IPC_MESSAGE_HANDLER(ViewHostMsg_DockDevToolsWindow, 805 IPC_MESSAGE_HANDLER(ViewHostMsg_DockDevToolsWindow,
806 OnDockDevToolsWindow); 806 OnDockDevToolsWindow);
807 IPC_MESSAGE_HANDLER(ViewHostMsg_UndockDevToolsWindow, 807 IPC_MESSAGE_HANDLER(ViewHostMsg_UndockDevToolsWindow,
808 OnUndockDevToolsWindow); 808 OnUndockDevToolsWindow);
809 IPC_MESSAGE_HANDLER(ViewHostMsg_ToggleInspectElementMode, 809 IPC_MESSAGE_HANDLER(ViewHostMsg_ToggleInspectElementMode,
810 OnToggleInspectElementMode); 810 OnToggleInspectElementMode);
811 IPC_MESSAGE_HANDLER(ViewHostMsg_DevToolsRuntimeFeatureStateChanged,
812 OnDevToolsRuntimeFeatureStateChanged);
811 IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction, 813 IPC_MESSAGE_HANDLER(ViewHostMsg_UserMetricsRecordAction,
812 OnUserMetricsRecordAction) 814 OnUserMetricsRecordAction)
813 IPC_MESSAGE_HANDLER(ViewHostMsg_MissingPluginStatus, OnMissingPluginStatus); 815 IPC_MESSAGE_HANDLER(ViewHostMsg_MissingPluginStatus, OnMissingPluginStatus);
814 IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin); 816 IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin);
815 IPC_MESSAGE_HANDLER(ViewHostMsg_SendCurrentPageAllSavableResourceLinks, 817 IPC_MESSAGE_HANDLER(ViewHostMsg_SendCurrentPageAllSavableResourceLinks,
816 OnReceivedSavableResourceLinksForCurrentPage); 818 OnReceivedSavableResourceLinksForCurrentPage);
817 IPC_MESSAGE_HANDLER(ViewHostMsg_SendSerializedHtmlData, 819 IPC_MESSAGE_HANDLER(ViewHostMsg_SendSerializedHtmlData,
818 OnReceivedSerializedHtmlData); 820 OnReceivedSerializedHtmlData);
819 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGetApplicationInfo, 821 IPC_MESSAGE_HANDLER(ViewHostMsg_DidGetApplicationInfo,
820 OnDidGetApplicationInfo); 822 OnDidGetApplicationInfo);
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1431 } 1433 }
1432 1434
1433 void RenderViewHost::OnUndockDevToolsWindow() { 1435 void RenderViewHost::OnUndockDevToolsWindow() {
1434 DevToolsManager::GetInstance()->UndockWindow(this); 1436 DevToolsManager::GetInstance()->UndockWindow(this);
1435 } 1437 }
1436 1438
1437 void RenderViewHost::OnToggleInspectElementMode(bool enabled) { 1439 void RenderViewHost::OnToggleInspectElementMode(bool enabled) {
1438 DevToolsManager::GetInstance()->ToggleInspectElementMode(this, enabled); 1440 DevToolsManager::GetInstance()->ToggleInspectElementMode(this, enabled);
1439 } 1441 }
1440 1442
1443 void RenderViewHost::OnDevToolsRuntimeFeatureStateChanged(
1444 const std::string& feature,
1445 bool enabled) {
1446 DevToolsManager::GetInstance()->
1447 RuntimeFeatureStateChanged(this, feature, enabled);
1448 }
1449
1441 void RenderViewHost::OnUserMetricsRecordAction(const std::wstring& action) { 1450 void RenderViewHost::OnUserMetricsRecordAction(const std::wstring& action) {
1442 UserMetrics::RecordComputedAction(action.c_str(), process()->profile()); 1451 UserMetrics::RecordComputedAction(action.c_str(), process()->profile());
1443 } 1452 }
1444 1453
1445 bool RenderViewHost::ShouldSendToRenderer(const NativeWebKeyboardEvent& event) { 1454 bool RenderViewHost::ShouldSendToRenderer(const NativeWebKeyboardEvent& event) {
1446 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate(); 1455 RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
1447 if (!view) 1456 if (!view)
1448 return true; 1457 return true;
1449 return !view->IsReservedAccelerator(event); 1458 return !view->IsReservedAccelerator(event);
1450 } 1459 }
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 #endif 1741 #endif
1733 } 1742 }
1734 1743
1735 void RenderViewHost::OnCSSInserted() { 1744 void RenderViewHost::OnCSSInserted() {
1736 delegate_->DidInsertCSS(); 1745 delegate_->DidInsertCSS();
1737 } 1746 }
1738 1747
1739 void RenderViewHost::UpdateBrowserWindowId(int window_id) { 1748 void RenderViewHost::UpdateBrowserWindowId(int window_id) {
1740 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id)); 1749 Send(new ViewMsg_UpdateBrowserWindowId(routing_id(), window_id));
1741 } 1750 }
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.h ('k') | chrome/common/devtools_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698