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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view.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.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view.h (revision 14463)
+++ chrome/browser/renderer_host/render_widget_host_view.h (working copy)
@@ -7,8 +7,9 @@
#include "base/gfx/native_widget_types.h"
#include "base/shared_memory.h"
+#include "skia/include/SkBitmap.h"
#include "webkit/glue/webplugin.h"
-#include "skia/include/SkBitmap.h"
+#include "webkit/glue/webwidget_delegate.h"
namespace gfx {
class Rect;
@@ -136,6 +137,14 @@
// Allocate a backing store for this view
virtual BackingStore* AllocBackingStore(const gfx::Size& size) = 0;
+#if defined(OS_MACOSX)
+ // Display a native control popup menu for WebKit.
+ virtual void ShowPopupWithItems(gfx::Rect bounds,
+ int item_height,
+ int selected_item,
+ const std::vector<WebMenuItem>& items) = 0;
+#endif
+
void set_activatable(bool activatable) {
activatable_ = activatable;
}
@@ -151,7 +160,7 @@
protected:
// Interface class only, do not construct.
RenderWidgetHostView() : activatable_(true) {}
-
+
// Whether the window can be activated. Autocomplete popup windows for example
// cannot be activated. Default is true.
bool activatable_;
« no previous file with comments | « chrome/browser/renderer_host/render_widget_host.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698