| 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 CHROME_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CHROME_RENDERER_RENDER_WIDGET_H_ |
| 6 #define CHROME_RENDERER_RENDER_WIDGET_H_ | 6 #define CHROME_RENDERER_RENDER_WIDGET_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 // given output parameters. | 212 // given output parameters. |
| 213 // | 213 // |
| 214 // A return value of null means optimized painting can not be used and we | 214 // A return value of null means optimized painting can not be used and we |
| 215 // should continue with the normal painting code path. | 215 // should continue with the normal painting code path. |
| 216 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( | 216 virtual webkit::ppapi::PluginInstance* GetBitmapForOptimizedPluginPaint( |
| 217 const gfx::Rect& paint_bounds, | 217 const gfx::Rect& paint_bounds, |
| 218 TransportDIB** dib, | 218 TransportDIB** dib, |
| 219 gfx::Rect* location, | 219 gfx::Rect* location, |
| 220 gfx::Rect* clip); | 220 gfx::Rect* clip); |
| 221 | 221 |
| 222 // Gets the scroll offset of this widget, if this widget has a notion of |
| 223 // scroll offset. |
| 224 virtual gfx::Size GetScrollOffset(); |
| 225 |
| 222 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should | 226 // Sets the "hidden" state of this widget. All accesses to is_hidden_ should |
| 223 // use this method so that we can properly inform the RenderThread of our | 227 // use this method so that we can properly inform the RenderThread of our |
| 224 // state. | 228 // state. |
| 225 void SetHidden(bool hidden); | 229 void SetHidden(bool hidden); |
| 226 | 230 |
| 227 bool is_hidden() const { return is_hidden_; } | 231 bool is_hidden() const { return is_hidden_; } |
| 228 | 232 |
| 229 // True if an UpdateRect_ACK message is pending. | 233 // True if an UpdateRect_ACK message is pending. |
| 230 bool update_reply_pending() const { | 234 bool update_reply_pending() const { |
| 231 return update_reply_pending_; | 235 return update_reply_pending_; |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 bool suppress_next_char_events_; | 365 bool suppress_next_char_events_; |
| 362 | 366 |
| 363 // Set to true if painting to the window is handled by the accelerated | 367 // Set to true if painting to the window is handled by the accelerated |
| 364 // compositor. | 368 // compositor. |
| 365 bool is_accelerated_compositing_active_; | 369 bool is_accelerated_compositing_active_; |
| 366 | 370 |
| 367 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 371 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 368 }; | 372 }; |
| 369 | 373 |
| 370 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ | 374 #endif // CHROME_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |