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

Side by Side Diff: content/shell/shell_render_view_observer.h

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, 11 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
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 #ifndef CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_ 5 #ifndef CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_
6 #define CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_ 6 #define CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "content/public/renderer/render_view_observer.h" 9 #include "content/public/renderer/render_view_observer.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 // This class holds the content_shell specific parts of RenderView, and has the 13 // This class holds the content_shell specific parts of RenderView, and has the
14 // same lifetime. 14 // same lifetime.
15 class ShellRenderViewObserver : public RenderViewObserver { 15 class ShellRenderViewObserver : public RenderViewObserver {
16 public: 16 public:
17 explicit ShellRenderViewObserver(RenderView* render_view); 17 explicit ShellRenderViewObserver(RenderView* render_view);
18 virtual ~ShellRenderViewObserver(); 18 virtual ~ShellRenderViewObserver();
19 19
20 // RenderViewObserver implementation. 20 // RenderViewObserver implementation.
21 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 21 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
22 22
23 private: 23 private:
24 // Message handlers.
25 void OnCaptureTextDump(bool recursive);
26
24 DISALLOW_COPY_AND_ASSIGN(ShellRenderViewObserver); 27 DISALLOW_COPY_AND_ASSIGN(ShellRenderViewObserver);
25 }; 28 };
26 29
27 } // namespace content 30 } // namespace content
28 31
29 #endif // CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_ 32 #endif // CONTENT_SHELL_SHELL_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/shell/shell_render_view_host_observer.cc ('k') | content/shell/shell_render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698