| 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 friend class base::RefCounted<RenderWidget>; | 160 friend class base::RefCounted<RenderWidget>; |
| 161 // For unit tests. | 161 // For unit tests. |
| 162 friend class RenderWidgetTest; | 162 friend class RenderWidgetTest; |
| 163 | 163 |
| 164 enum ResizeAck { | 164 enum ResizeAck { |
| 165 SEND_RESIZE_ACK, | 165 SEND_RESIZE_ACK, |
| 166 NO_RESIZE_ACK, | 166 NO_RESIZE_ACK, |
| 167 }; | 167 }; |
| 168 | 168 |
| 169 RenderWidget(WebKit::WebPopupType popup_type, | 169 RenderWidget(WebKit::WebPopupType popup_type, |
| 170 const WebKit::WebScreenInfo& screen_info); | 170 const WebKit::WebScreenInfo& screen_info, |
| 171 bool swapped_out); |
| 171 virtual ~RenderWidget(); | 172 virtual ~RenderWidget(); |
| 172 | 173 |
| 173 // Initializes this view with the given opener. CompleteInit must be called | 174 // Initializes this view with the given opener. CompleteInit must be called |
| 174 // later. | 175 // later. |
| 175 void Init(int32 opener_id); | 176 void Init(int32 opener_id); |
| 176 | 177 |
| 177 // Called by Init and subclasses to perform initialization. | 178 // Called by Init and subclasses to perform initialization. |
| 178 void DoInit(int32 opener_id, | 179 void DoInit(int32 opener_id, |
| 179 WebKit::WebWidget* web_widget, | 180 WebKit::WebWidget* web_widget, |
| 180 IPC::SyncMessage* create_widget_message); | 181 IPC::SyncMessage* create_widget_message); |
| (...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 // Set to true if we should invert all pixels. | 519 // Set to true if we should invert all pixels. |
| 519 bool invert_; | 520 bool invert_; |
| 520 | 521 |
| 521 // The Skia paint object for inverting. | 522 // The Skia paint object for inverting. |
| 522 scoped_ptr<SkPaint> invert_paint_; | 523 scoped_ptr<SkPaint> invert_paint_; |
| 523 | 524 |
| 524 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 525 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 525 }; | 526 }; |
| 526 | 527 |
| 527 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 528 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |