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

Unified Diff: webkit/glue/webwidget_impl.cc

Issue 48149: Use cocoa controls for HTML select popups in test_shell (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
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() ||

Powered by Google App Engine
This is Rietveld 408576698