summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 02:17:23 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-10 02:17:23 +0000
commit1bb331100af1a0c87b595d7feb6c40de8ecaee3a (patch)
tree50484f5e4d8f041d3d1f8e00fef10ed0598a5610 /chrome/renderer
parent8c4a580917a5f379b4a9e67145ed78a347151181 (diff)
downloadchromium_src-1bb331100af1a0c87b595d7feb6c40de8ecaee3a.zip
chromium_src-1bb331100af1a0c87b595d7feb6c40de8ecaee3a.tar.gz
chromium_src-1bb331100af1a0c87b595d7feb6c40de8ecaee3a.tar.bz2
Get the renderer closer to rendering something on linux.
* implement some stubbed functions * comment out some unimplemented IPC calls * hack a webcontents widget into BrowserWindow so that something displays Review URL: http://codereview.chromium.org/20204 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9445 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/render_thread.cc4
-rw-r--r--chrome/renderer/render_widget.cc6
2 files changed, 6 insertions, 4 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 3260a29..1655e04 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -227,10 +227,7 @@ void RenderThread::OnCreateNewView(gfx::NativeViewId parent_hwnd,
ModalDialogEvent modal_dialog_event,
const WebPreferences& webkit_prefs,
int32 view_id) {
- // TODO(port): this routine is a noop only for Linux.
// When bringing in render_view, also bring in webkit's glue and jsbindings.
-#if !defined(OS_LINUX)
-
base::WaitableEvent* waitable_event = new base::WaitableEvent(
#if defined(OS_WIN)
modal_dialog_event.event);
@@ -247,7 +244,6 @@ void RenderThread::OnCreateNewView(gfx::NativeViewId parent_hwnd,
RenderView::Create(
this, parent_hwnd, waitable_event, MSG_ROUTING_NONE, webkit_prefs,
new SharedRenderViewCounter(0), view_id);
-#endif // !OS_LINUX
}
void RenderThread::OnSetCacheCapacities(size_t min_dead_capacity,
diff --git a/chrome/renderer/render_widget.cc b/chrome/renderer/render_widget.cc
index 82ca86c..83732eb 100644
--- a/chrome/renderer/render_widget.cc
+++ b/chrome/renderer/render_widget.cc
@@ -694,8 +694,14 @@ void RenderWidget::GetRootWindowRect(WebWidget* webwidget, gfx::Rect* rect) {
void RenderWidget::GetRootWindowResizerRect(WebWidget* webwidget,
gfx::Rect* rect) {
+#if defined(OS_WIN)
Send(new ViewHostMsg_GetRootWindowResizerRect(routing_id_, host_window_,
rect));
+#else
+ // TODO(port): mac/linux currently choke on this message.
+ // See browser/renderer_host/render_message_host.cc.
+ NOTIMPLEMENTED();
+#endif
}
void RenderWidget::OnImeSetInputMode(bool is_active) {