void OnSelectionRectReceived(const gfx::Rect&) override;
void OnGetNumberFieldAttributes(bool is_minimum_negative,
bool is_step_integer) override;
+
+ // Returns the text including the selection which might include
+ // several characters before and after it.
+ std::u16string GetSelectionText();
#endif
#if defined(BUILD_CHROME)
#if BUILDFLAG(IS_EFL)
void DisplayQRCode(std::string contents) override;
void CloseQRCode() override;
- // Returns the text including the selection which might include
- // several characters before and after it.
- std::u16string GetSelectionText();
#endif
// May be overridden in tests.
std::string(dgettext("WebKit", "IDS_WEBVIEW_OPT_SELECT_ABB")));
}
-#if !defined(WRT_JS_BRINGUP)
size_t surroundings_length = rwhv->GetSelectionText().length();
size_t selection_length = params_.selection_text.length();
auto surroundings_last_char =
EWK_CONTEXT_MENU_ITEM_TAG_SELECT_ALL,
std::string(dgettext("WebKit", "IDS_WEBVIEW_OPT_SELECT_ALL_ABB")));
}
-#endif
}
} else {
if (params_.media_type != blink::mojom::ContextMenuDataMediaType::kImage &&
}
void WRTContextMenuController::MoveCaret(const gfx::Point& point) {
-#if !defined(WRT_JS_BRINGUP)
if (rwhva() && rwhva()->offscreen_helper())
rwhva()->offscreen_helper()->MoveCaret(point);
-#endif
}
void WRTContextMenuController::SelectFocusedLink() {