OLD | NEW |
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 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ |
7 #pragma once | |
8 | 7 |
9 namespace content { | 8 namespace content { |
10 | 9 |
11 class RenderView; | 10 class RenderView; |
12 | 11 |
13 class RenderViewVisitor { | 12 class RenderViewVisitor { |
14 public: | 13 public: |
15 // Return true to continue visiting RenderViews or false to stop. | 14 // Return true to continue visiting RenderViews or false to stop. |
16 virtual bool Visit(RenderView* render_view) = 0; | 15 virtual bool Visit(RenderView* render_view) = 0; |
17 | 16 |
18 protected: | 17 protected: |
19 virtual ~RenderViewVisitor() {} | 18 virtual ~RenderViewVisitor() {} |
20 }; | 19 }; |
21 | 20 |
22 } // namespace content | 21 } // namespace content |
23 | 22 |
24 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ | 23 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_VISITOR_H_ |
OLD | NEW |