Chromium Code Reviews| Index: webkit/glue/webwidget_impl.cc |
| =================================================================== |
| --- webkit/glue/webwidget_impl.cc (revision 12371) |
| +++ webkit/glue/webwidget_impl.cc (working copy) |
| @@ -62,6 +62,20 @@ |
| } |
| } |
| +void WebWidgetImpl::InitWithItems(WebCore::FramelessScrollView* widget, |
| + const gfx::Rect& bounds, |
| + int item_height, |
| + int selected_index, |
| + const std::vector<MenuItem>& items) { |
| + widget_ = widget; |
| + widget_->setClient(this); |
| + |
| + if (delegate_) { |
| + delegate_->SetWindowRect(this, bounds); |
|
darin (slow to review)
2009/04/01 18:02:50
it seems kind of strange to have to pass bounds tw
|
| + delegate_->ShowWithItems(this, bounds, item_height, selected_index, items); |
| + } |
| +} |
| + |
| void WebWidgetImpl::MouseMove(const WebMouseEvent& event) { |
| // don't send mouse move messages if the mouse hasn't moved. |
| if (event.x != last_mouse_position_.x() || |