| OLD | NEW |
| 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 namespace IPC { | 37 namespace IPC { |
| 38 class SyncMessage; | 38 class SyncMessage; |
| 39 } | 39 } |
| 40 | 40 |
| 41 namespace WebKit { | 41 namespace WebKit { |
| 42 class WebMouseEvent; | 42 class WebMouseEvent; |
| 43 class WebTouchEvent; | 43 class WebTouchEvent; |
| 44 class WebWidget; | 44 class WebWidget; |
| 45 } | 45 } |
| 46 | 46 |
| 47 namespace content { |
| 48 class RenderWidgetTest; |
| 49 } |
| 50 |
| 47 namespace gfx { | 51 namespace gfx { |
| 48 class Point; | 52 class Point; |
| 49 } | 53 } |
| 50 | 54 |
| 51 namespace skia { | 55 namespace skia { |
| 52 class PlatformCanvas; | 56 class PlatformCanvas; |
| 53 } | 57 } |
| 54 | 58 |
| 55 namespace ui { | 59 namespace ui { |
| 56 class Range; | 60 class Range; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 155 |
| 152 float filtered_time_per_frame() const { | 156 float filtered_time_per_frame() const { |
| 153 return filtered_time_per_frame_; | 157 return filtered_time_per_frame_; |
| 154 } | 158 } |
| 155 | 159 |
| 156 protected: | 160 protected: |
| 157 // Friend RefCounted so that the dtor can be non-public. Using this class | 161 // Friend RefCounted so that the dtor can be non-public. Using this class |
| 158 // without ref-counting is an error. | 162 // without ref-counting is an error. |
| 159 friend class base::RefCounted<RenderWidget>; | 163 friend class base::RefCounted<RenderWidget>; |
| 160 // For unit tests. | 164 // For unit tests. |
| 161 friend class RenderWidgetTest; | 165 friend class content::RenderWidgetTest; |
| 162 | 166 |
| 163 enum ResizeAck { | 167 enum ResizeAck { |
| 164 SEND_RESIZE_ACK, | 168 SEND_RESIZE_ACK, |
| 165 NO_RESIZE_ACK, | 169 NO_RESIZE_ACK, |
| 166 }; | 170 }; |
| 167 | 171 |
| 168 RenderWidget(WebKit::WebPopupType popup_type, | 172 RenderWidget(WebKit::WebPopupType popup_type, |
| 169 bool swapped_out); | 173 bool swapped_out); |
| 170 virtual ~RenderWidget(); | 174 virtual ~RenderWidget(); |
| 171 | 175 |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 // Set to true if we should invert all pixels. | 522 // Set to true if we should invert all pixels. |
| 519 bool invert_; | 523 bool invert_; |
| 520 | 524 |
| 521 // The Skia paint object for inverting. | 525 // The Skia paint object for inverting. |
| 522 scoped_ptr<SkPaint> invert_paint_; | 526 scoped_ptr<SkPaint> invert_paint_; |
| 523 | 527 |
| 524 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 528 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 525 }; | 529 }; |
| 526 | 530 |
| 527 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 531 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |