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

Side by Side Diff: content/shell/shell_render_view_host_observer.cc

Issue 9289045: Add option --dump-render-tree to content_shell to dump the render tree as text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/shell/shell_render_view_host_observer.h"
6
7 #include <iostream>
8
9 #include "content/shell/shell_messages.h"
10
11 namespace content {
12
13 ShellRenderViewHostObserver::ShellRenderViewHostObserver(
14 RenderViewHost* render_view_host)
15 : RenderViewHostObserver(render_view_host) {
16 }
17
18 ShellRenderViewHostObserver::~ShellRenderViewHostObserver() {
19 }
20
21 bool ShellRenderViewHostObserver::OnMessageReceived(
22 const IPC::Message& message) {
23 bool handled = true;
24 IPC_BEGIN_MESSAGE_MAP(ShellRenderViewHostObserver, message)
25 IPC_MESSAGE_HANDLER(ShellViewHostMsg_TextDump, OnTextDump)
26 IPC_MESSAGE_UNHANDLED(handled = false)
27 IPC_END_MESSAGE_MAP()
28 return handled;
29 }
30
31 void ShellRenderViewHostObserver::OnTextDump(const std::string& dump) {
32 std::cout << dump;
33 }
34
35 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_render_view_host_observer.h ('k') | content/shell/shell_render_view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698