Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: content/renderer/render_widget.h

Issue 10537128: Allow non integer device scale factors in render widget (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698