summaryrefslogtreecommitdiffstats
path: root/content/renderer/external_popup_menu.h
diff options
context:
space:
mode:
authoraruslan@chromium.org <aruslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-26 00:54:12 +0000
committeraruslan@chromium.org <aruslan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-05-26 00:54:12 +0000
commit24d2b17dff7c4044839e1b5abd5baf83f4eb3b1d (patch)
tree57299b02d66597023406378a45337bbd794aadd9 /content/renderer/external_popup_menu.h
parentf9d518696118b8f4985a20a18fb2d806af049415 (diff)
downloadchromium_src-24d2b17dff7c4044839e1b5abd5baf83f4eb3b1d.zip
chromium_src-24d2b17dff7c4044839e1b5abd5baf83f4eb3b1d.tar.gz
chromium_src-24d2b17dff7c4044839e1b5abd5baf83f4eb3b1d.tar.bz2
Multi-select <select> in 'external popup window'
We use an 'external popup window' for both single and multi selection <select> tag popups. This also supports <optgroup> and disabled <option> items and multiple selections. On all other chrome platforms a multi-select <select> tag is rendered in page, so this CL adds a bit of plumbing and IPC stuff to get the multi-select popups working as well. WebKit side of this CL is at http://trac.webkit.org/changeset/94600 Review URL: https://chromiumcodereview.appspot.com/10436010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139169 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/external_popup_menu.h')
-rw-r--r--content/renderer/external_popup_menu.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/content/renderer/external_popup_menu.h b/content/renderer/external_popup_menu.h
index bdc9aae..f039fcf 100644
--- a/content/renderer/external_popup_menu.h
+++ b/content/renderer/external_popup_menu.h
@@ -1,10 +1,12 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 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 <vector>
+
#include "base/basictypes.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebExternalPopupMenu.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenuInfo.h"
@@ -22,9 +24,16 @@ class ExternalPopupMenu : public WebKit::WebExternalPopupMenu {
virtual ~ExternalPopupMenu() {}
+#if defined(OS_MACOSX)
// Called when the user has selected an item. |selected_item| is -1 if the
// user canceled the popup.
void DidSelectItem(int selected_index);
+#endif
+
+#if defined(OS_ANDROID)
+ // Called when the user has selected items or canceled the popup.
+ void DidSelectItems(bool canceled, const std::vector<int>& selected_indices);
+#endif
// WebKit::WebExternalPopupMenu implementation:
virtual void show(const WebKit::WebRect& bounds);