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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_mac.h

Issue 57032: Implement HTML selects as native Cocoa controls for Chrome (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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: chrome/browser/renderer_host/render_widget_host_view_mac.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_mac.h (revision 14463)
+++ chrome/browser/renderer_host/render_widget_host_view_mac.h (working copy)
@@ -82,9 +82,15 @@
virtual void Destroy();
virtual void SetTooltipText(const std::wstring& tooltip_text);
virtual BackingStore* AllocBackingStore(const gfx::Size& size);
+ virtual void ShowPopupWithItems(gfx::Rect bounds,
+ int item_height,
+ int selected_item,
+ const std::vector<WebMenuItem>& items);
void KillSelf();
+ void set_parent_view(BaseView* parent_view) { parent_view_ = parent_view; }
+
// These member variables should be private, but the associated ObjC class
// needs access to them and can't be made a friend.
@@ -131,6 +137,9 @@
// Factory used to safely scope delayed calls to ShutdownHost().
ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_;
+ // Used for positioning a popup menu.
+ BaseView* parent_view_;
+
DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
};
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host_view.h ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698