| 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 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 // executed. Since we can have several in flight, we need to keep them in a | 549 // executed. Since we can have several in flight, we need to keep them in a |
| 550 // queue. Note: some SwapBuffers may not correspond to an update, in which | 550 // queue. Note: some SwapBuffers may not correspond to an update, in which |
| 551 // case NULL is added to the queue. | 551 // case NULL is added to the queue. |
| 552 std::deque<ViewHostMsg_UpdateRect*> updates_pending_swap_; | 552 std::deque<ViewHostMsg_UpdateRect*> updates_pending_swap_; |
| 553 | 553 |
| 554 // Properties of the screen hosting this RenderWidget instance. | 554 // Properties of the screen hosting this RenderWidget instance. |
| 555 WebKit::WebScreenInfo screen_info_; | 555 WebKit::WebScreenInfo screen_info_; |
| 556 | 556 |
| 557 // The device scale factor. This value is computed from the DPI entries in | 557 // The device scale factor. This value is computed from the DPI entries in |
| 558 // |screen_info_| on some platforms, and defaults to 1 on other platforms. | 558 // |screen_info_| on some platforms, and defaults to 1 on other platforms. |
| 559 int device_scale_factor_; | 559 float device_scale_factor_; |
| 560 | 560 |
| 561 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 561 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| 562 }; | 562 }; |
| 563 | 563 |
| 564 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 564 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
| OLD | NEW |