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

Side by Side Diff: content/port/browser/render_widget_host_view_port.h

Issue 11953054: Fix high-DPI on Windows to make use of DIP scaling in WebKit. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove experimental changes to resource handling. Created 7 years, 11 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
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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 12 matching lines...) Expand all
23 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 23 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
24 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; 24 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
25 struct ViewHostMsg_TextInputState_Params; 25 struct ViewHostMsg_TextInputState_Params;
26 26
27 namespace webkit { 27 namespace webkit {
28 namespace npapi { 28 namespace npapi {
29 struct WebPluginGeometry; 29 struct WebPluginGeometry;
30 } 30 }
31 } 31 }
32 32
33 #if defined(OS_POSIX) || defined(USE_AURA)
34 namespace WebKit { 33 namespace WebKit {
35 struct WebScreenInfo; 34 struct WebScreenInfo;
36 } 35 }
37 #endif
38 36
39 namespace skia { 37 namespace skia {
40 class PlatformBitmap; 38 class PlatformBitmap;
41 }; 39 };
42 40
43 namespace content { 41 namespace content {
44 class BackingStore; 42 class BackingStore;
45 class SmoothScrollGesture; 43 class SmoothScrollGesture;
46 struct NativeWebKeyboardEvent; 44 struct NativeWebKeyboardEvent;
47 45
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 243
246 #if defined(TOOLKIT_GTK) 244 #if defined(TOOLKIT_GTK)
247 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; 245 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0;
248 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; 246 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0;
249 #endif // defined(TOOLKIT_GTK) 247 #endif // defined(TOOLKIT_GTK)
250 248
251 #if defined(OS_WIN) && !defined(USE_AURA) 249 #if defined(OS_WIN) && !defined(USE_AURA)
252 virtual void WillWmDestroy() = 0; 250 virtual void WillWmDestroy() = 0;
253 #endif 251 #endif
254 252
255 #if defined(OS_POSIX) || defined(USE_AURA)
256 static void GetDefaultScreenInfo( 253 static void GetDefaultScreenInfo(
257 WebKit::WebScreenInfo* results); 254 WebKit::WebScreenInfo* results);
258 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; 255 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0;
259 #endif
260 256
261 // Gets the bounds of the window, in screen coordinates. 257 // Gets the bounds of the window, in screen coordinates.
262 virtual gfx::Rect GetBoundsInRootWindow() = 0; 258 virtual gfx::Rect GetBoundsInRootWindow() = 0;
263 259
264 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 260 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
265 261
266 // Because the associated remote WebKit instance can asynchronously 262 // Because the associated remote WebKit instance can asynchronously
267 // prevent-default on a dispatched touch event, the touch events are queued in 263 // prevent-default on a dispatched touch event, the touch events are queued in
268 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 264 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
269 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) 265 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS)
(...skipping 20 matching lines...) Expand all
290 virtual BrowserAccessibilityManager* 286 virtual BrowserAccessibilityManager*
291 GetBrowserAccessibilityManager() const = 0; 287 GetBrowserAccessibilityManager() const = 0;
292 virtual void OnAccessibilityNotifications( 288 virtual void OnAccessibilityNotifications(
293 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 289 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
294 } 290 }
295 }; 291 };
296 292
297 } // namespace content 293 } // namespace content
298 294
299 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 295 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698