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

Unified Diff: content/renderer/external_popup_menu.h

Issue 1992393002: Enable external popup menu in Blimp, part 1/2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update blimp_engine.gn Created 4 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/renderer/BUILD.gn ('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 0d99eb7e6d97ba40aa97e5a4f7bcde6b02434262..0158f99fc0d9d9f34d496ec775ab32f5c6d4577b 100644
--- a/content/renderer/external_popup_menu.h
+++ b/content/renderer/external_popup_menu.h
@@ -31,16 +31,16 @@ class ExternalPopupMenu : public blink::WebExternalPopupMenu {
void SetOriginScaleAndOffsetForEmulation(
float scale, const gfx::PointF& offset);
+#if defined(USE_EXTERNAL_POPUP_MENU)
#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)
+#else
// Called when the user has selected items or canceled the popup.
void DidSelectItems(bool canceled, const std::vector<int>& selected_indices);
#endif
+#endif
// blink::WebExternalPopupMenu implementation:
void show(const blink::WebRect& bounds) override;
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/external_popup_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698