summaryrefslogtreecommitdiffstats
path: root/content/renderer/external_popup_menu.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 01:33:53 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-22 01:33:53 +0000
commit557221548b76b970d4b70f890cb1d3165ff8257d (patch)
tree145bdab7a078d1012d480fba66f6697f9f3ecb42 /content/renderer/external_popup_menu.h
parent8fb5ca734a7680739653b79d264e4997add31f05 (diff)
downloadchromium_src-557221548b76b970d4b70f890cb1d3165ff8257d.zip
chromium_src-557221548b76b970d4b70f890cb1d3165ff8257d.tar.gz
chromium_src-557221548b76b970d4b70f890cb1d3165ff8257d.tar.bz2
Move some more renderer messages to content. Also move a couple of files which should have been moved.TBR=tsepez
R=sky@chromium.org,*,jam@chromium.org,jcivelli@chromium.org,phajdan.jr@chromium.org,darin@chromium.org,brettw@chromium.org,ben@chromium.org Review URL: http://codereview.chromium.org/6718020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78957 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/external_popup_menu.h')
-rw-r--r--content/renderer/external_popup_menu.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/content/renderer/external_popup_menu.h b/content/renderer/external_popup_menu.h
new file mode 100644
index 0000000..ef83d071
--- /dev/null
+++ b/content/renderer/external_popup_menu.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_
+#define CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_
+
+#include "base/basictypes.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebExternalPopupMenu.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h"
+
+class RenderView;
+namespace WebKit {
+class WebExternalPopupMenuClient;
+}
+
+class ExternalPopupMenu : public WebKit::WebExternalPopupMenu {
+ public:
+ ExternalPopupMenu(RenderView* render_view,
+ const WebKit::WebPopupMenuInfo& popup_menu_info,
+ WebKit::WebExternalPopupMenuClient* popup_menu_client);
+
+ // Called when the user has selected an item. |selected_item| is -1 if the
+ // user canceled the popup.
+ void DidSelectItem(int selected_index);
+
+ // WebKit::WebExternalPopupMenu implementation:
+ virtual void show(const WebKit::WebRect& bounds);
+ virtual void close();
+
+ private:
+ RenderView* render_view_;
+ WebKit::WebPopupMenuInfo popup_menu_info_;
+ WebKit::WebExternalPopupMenuClient* popup_menu_client_;
+
+ DISALLOW_COPY_AND_ASSIGN(ExternalPopupMenu);
+};
+
+#endif // CONTENT_RENDERER_EXTERNAL_POPUP_MENU_H_