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

Unified Diff: content/renderer/external_popup_menu.h

Issue 10436010: Multi-select <select> in 'external popup window' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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
« no previous file with comments | « content/port/browser/render_view_host_delegate_view.h ('k') | content/renderer/external_popup_menu.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/external_popup_menu.h
diff --git a/content/renderer/external_popup_menu.h b/content/renderer/external_popup_menu.h
index bdc9aae6187e3e88107f639a08c229490a725fc8..f039fcfb4b348f1c6a69859fb24f1a3a76ee71d0 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);
« no previous file with comments | « content/port/browser/render_view_host_delegate_view.h ('k') | content/renderer/external_popup_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698