diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-31 22:28:40 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-31 22:28:40 +0000 |
commit | 5299356524f2e169ec97db351c44fe6da701984e (patch) | |
tree | 6aeb51a22c6d3c101fce0f17ea1e65a659232507 /chrome/renderer/renderer_glue.cc | |
parent | 9c8108d9356604eec57bf3c880f1580eb41fd1c3 (diff) | |
download | chromium_src-5299356524f2e169ec97db351c44fe6da701984e.zip chromium_src-5299356524f2e169ec97db351c44fe6da701984e.tar.gz chromium_src-5299356524f2e169ec97db351c44fe6da701984e.tar.bz2 |
Takes steps to make our PlatformScreen implementation more portable.
Introduces ChromiumBridge as a means for our WebCore port to depend on the embedder indirectly. This will be extended to support the rest of our port.
WebWidgetImpl and ChromeClientImpl both needed to have their platformWindow getter implemented. This fixes a regression related to the most recent merge.
Removes the orphaned Language.cpp (see the real one in the platform/chromium directory.
Changed webkit_glue::GetMonitorInfoForWindow to webkit_glue::GetScreenInfo. This resulted in a varied amount of plumbing changes. It also pushes the platform specific bits up into the browser where they belong.
ScreenInfo is a struct that is part of the webkit/glue API.
R=dglazkov,eseidel
Review URL: http://codereview.chromium.org/8761
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4335 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/renderer_glue.cc')
-rw-r--r-- | chrome/renderer/renderer_glue.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/renderer/renderer_glue.cc b/chrome/renderer/renderer_glue.cc index 244646e..83e5b95 100644 --- a/chrome/renderer/renderer_glue.cc +++ b/chrome/renderer/renderer_glue.cc @@ -234,14 +234,13 @@ bool webkit_glue::EnsureFontLoaded(HFONT font) { return RenderThread::current()->Send(new ViewHostMsg_LoadFont(logfont)); } -MONITORINFOEX webkit_glue::GetMonitorInfoForWindow(HWND window) { - MONITORINFOEX monitor_info; +webkit_glue::ScreenInfo webkit_glue::GetScreenInfo(gfx::ViewHandle window) { + webkit_glue::ScreenInfo results; RenderThread::current()->Send( - new ViewHostMsg_GetMonitorInfoForWindow(window, &monitor_info)); - return monitor_info; + new ViewHostMsg_GetScreenInfo(window, &results)); + return results; } - #ifndef USING_SIMPLE_RESOURCE_LOADER_BRIDGE // Each RenderView has a ResourceDispatcher. In unit tests, this function may |