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

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

Issue 10481005: content: A couple of device-scale-factor fixes: (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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 virtual void closeWidgetSoon(); 134 virtual void closeWidgetSoon();
135 virtual void show(WebKit::WebNavigationPolicy); 135 virtual void show(WebKit::WebNavigationPolicy);
136 virtual void runModal() {} 136 virtual void runModal() {}
137 virtual WebKit::WebRect windowRect(); 137 virtual WebKit::WebRect windowRect();
138 virtual void setToolTipText(const WebKit::WebString& text, 138 virtual void setToolTipText(const WebKit::WebString& text,
139 WebKit::WebTextDirection hint); 139 WebKit::WebTextDirection hint);
140 virtual void setWindowRect(const WebKit::WebRect&); 140 virtual void setWindowRect(const WebKit::WebRect&);
141 virtual WebKit::WebRect windowResizerRect(); 141 virtual WebKit::WebRect windowResizerRect();
142 virtual WebKit::WebRect rootWindowRect(); 142 virtual WebKit::WebRect rootWindowRect();
143 virtual WebKit::WebScreenInfo screenInfo(); 143 virtual WebKit::WebScreenInfo screenInfo();
144 virtual float deviceScaleFactor();
144 virtual void resetInputMethod(); 145 virtual void resetInputMethod();
145 146
146 // Called when a plugin is moved. These events are queued up and sent with 147 // Called when a plugin is moved. These events are queued up and sent with
147 // the next paint or scroll message to the host. 148 // the next paint or scroll message to the host.
148 void SchedulePluginMove(const webkit::npapi::WebPluginGeometry& move); 149 void SchedulePluginMove(const webkit::npapi::WebPluginGeometry& move);
149 150
150 // Called when a plugin window has been destroyed, to make sure the currently 151 // Called when a plugin window has been destroyed, to make sure the currently
151 // pending moves don't try to reference it. 152 // pending moves don't try to reference it.
152 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window); 153 void CleanupWindowInPluginMoves(gfx::PluginWindowHandle window);
153 154
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 // Set to true if we should invert all pixels. 532 // Set to true if we should invert all pixels.
532 bool invert_; 533 bool invert_;
533 534
534 // The Skia paint object for inverting. 535 // The Skia paint object for inverting.
535 scoped_ptr<SkPaint> invert_paint_; 536 scoped_ptr<SkPaint> invert_paint_;
536 537
537 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 538 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
538 }; 539 };
539 540
540 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 541 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698