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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 // | 358 // |
359 // This ID may refer to an invalid view if that view is closed before this | 359 // This ID may refer to an invalid view if that view is closed before this |
360 // view is. | 360 // view is. |
361 int32 opener_id_; | 361 int32 opener_id_; |
362 | 362 |
363 // The position where this view should be initially shown. | 363 // The position where this view should be initially shown. |
364 gfx::Rect initial_pos_; | 364 gfx::Rect initial_pos_; |
365 | 365 |
366 // The window we are embedded within. TODO(darin): kill this. | 366 // The window we are embedded within. TODO(darin): kill this. |
367 gfx::NativeViewId host_window_; | 367 gfx::NativeViewId host_window_; |
| 368 bool host_window_set_; |
368 | 369 |
369 // We store the current cursor object so we can avoid spamming SetCursor | 370 // We store the current cursor object so we can avoid spamming SetCursor |
370 // messages. | 371 // messages. |
371 WebCursor current_cursor_; | 372 WebCursor current_cursor_; |
372 | 373 |
373 // The size of the RenderWidget. | 374 // The size of the RenderWidget. |
374 gfx::Size size_; | 375 gfx::Size size_; |
375 | 376 |
376 // The TransportDIB that is being used to transfer an image to the browser. | 377 // The TransportDIB that is being used to transfer an image to the browser. |
377 TransportDIB* current_paint_buf_; | 378 TransportDIB* current_paint_buf_; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 // delay sending of UpdateRect until the corresponding SwapBuffers has been | 491 // delay sending of UpdateRect until the corresponding SwapBuffers has been |
491 // executed. Since we can have several in flight, we need to keep them in a | 492 // executed. Since we can have several in flight, we need to keep them in a |
492 // queue. Note: some SwapBuffers may not correspond to an update, in which | 493 // queue. Note: some SwapBuffers may not correspond to an update, in which |
493 // case NULL is added to the queue. | 494 // case NULL is added to the queue. |
494 std::deque<ViewHostMsg_UpdateRect*> updates_pending_swap_; | 495 std::deque<ViewHostMsg_UpdateRect*> updates_pending_swap_; |
495 | 496 |
496 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 497 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
497 }; | 498 }; |
498 | 499 |
499 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 500 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |