/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/test/unittest/pasteboardperf/ |
H A D | PasteBoardCallbackApiPerfJsunit.test.js | 30 const htmlText = '<html><head></head><body>Hello!</body></html>'; 86 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 110 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 180 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 206 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 231 let pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 254 let pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_HTML, htmlText);
|
H A D | PasteBoardPromiseApiPerfJsunit.test.js | 30 const htmlText = '<html><head></head><body>Hello!</body></html>'; 87 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 111 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 181 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 207 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 232 let pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 255 let pasteDataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_HTML, htmlText);
|
H A D | PasteBoardSyncApiPerfJsunit.test.js | 38 const htmlText = '<html><head></head><body>Hello!</body></html>'; 95 funcWithOneparam(pasteboard.createHtmlData, htmlText, BASE_CONUT); 147 funcWithOneparam(pasteboard.createHtmlTextRecord, htmlText, BASE_CONUT); 242 funcWithOneparam(pasteData.addHtmlRecord, htmlText, BASE_CONUT); 273 funcWithOneparam(pasteData.addHtmlRecord, htmlText, BASE_CONUT); 356 let pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 513 let dataRecord = pasteboard.createRecord(pasteboard.MIMETYPE_TEXT_HTML, htmlText);
|
/ohos5.0/base/web/webview/ohos_adapter/pasteboard_adapter/src/ |
H A D | pasteboard_client_adapter_impl.cpp | 73 std::shared_ptr<std::string> htmlText, in PasteDataRecordAdapterImpl() argument 77 htmlText, in PasteDataRecordAdapterImpl() 93 std::shared_ptr<std::string> htmlText, in NewRecord() argument 97 htmlText, in NewRecord() 101 bool PasteDataRecordAdapterImpl::SetHtmlText(std::shared_ptr<std::string> htmlText) in SetHtmlText() argument 103 return SetHtmlText(htmlText, nullptr); in SetHtmlText() 107 std::shared_ptr<std::string> htmlText, std::shared_ptr<std::string> plainText) in SetHtmlText() argument 109 if (!record_ || !htmlText) { in SetHtmlText() 120 object->value_[UDMF::HTML_CONTENT] = *htmlText; in SetHtmlText() 134 if (auto htmlText = record_->GetHtmlText(); htmlText && !htmlText->empty()) { in SetPlainText() local [all …]
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_paste_data_record_adapter_wrapper.cpp | 32 …const std::string& mimeType, std::shared_ptr<std::string> htmlText, std::shared_ptr<std::string> p… in NewRecord() argument 36 ArkWeb::ArkPasteDataRecordAdapter::NewRecord(str, (void*)(&htmlText), (void*)(&plainText)); in NewRecord() 49 bool ArkPasteDataRecordAdapterWrapper::SetHtmlText(std::shared_ptr<std::string> htmlText) in SetHtmlText() argument 51 return ctocpp_->SetHtmlText((void*)(&htmlText)); in SetHtmlText()
|
H A D | ark_paste_data_record_adapter_wrapper.h | 29 bool SetHtmlText(std::shared_ptr<std::string> htmlText) override;
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_paste_data_record_adapter_impl.cpp | 32 const ArkWebString& mimeType, void* htmlText, void* plainText) in NewRecord() argument 34 std::shared_ptr<std::string>* html = static_cast<std::shared_ptr<std::string>*>(htmlText); in NewRecord() 45 bool ArkPasteDataRecordAdapterImpl::SetHtmlText(void* htmlText) in SetHtmlText() argument 47 std::shared_ptr<std::string>* temp = static_cast<std::shared_ptr<std::string>*>(htmlText); in SetHtmlText()
|
H A D | ark_paste_data_record_adapter_impl.h | 29 bool SetHtmlText(void* htmlText) override;
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/services/test/unittest/src/ |
H A D | paste_service_test.cpp | 242 std::string htmlText = "<div class='disabled item tip user-programs'>"; variable 247 ASSERT_TRUE(*newHtmlText == htmlText); 393 std::string htmlText = variable 417 std::string htmlText = variable 433 ASSERT_TRUE(*record == htmlText); 443 std::string htmlText = variable 458 ASSERT_TRUE(*record == htmlText); 468 std::string htmlText = variable 586 ASSERT_TRUE(*record == htmlText); 618 ASSERT_TRUE(*primaryHtml == htmlText); [all …]
|
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/pasteboard_adapter/getmimetype_fuzzer/ |
H A D | getmimetype_fuzzer.cpp | 30 std::shared_ptr<std::string> htmlText = std::make_shared<std::string>(text); in GetMimeTypeFuzzTest() local 32 std::make_shared<PasteDataRecordAdapterImpl>(text, htmlText, plainText); in GetMimeTypeFuzzTest()
|
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/pasteboard_adapter/seturi_fuzzer/ |
H A D | seturi_fuzzer.cpp | 30 std::shared_ptr<std::string> htmlText = std::make_shared<std::string>(text); in SetUriFuzzTest() local 32 PasteDataRecordAdapter::NewRecord(text, htmlText, plainText); in SetUriFuzzTest()
|
/ohos5.0/base/web/webview/test/fuzztest/ohos_adapter/pasteboard_adapter/sethtmltext_fuzzer/ |
H A D | sethtmltext_fuzzer.cpp | 36 std::shared_ptr<std::string> htmlText = std::make_shared<std::string>(text); in SetHtmlTextFuzzTest() local 37 dataRecordAdapter->SetHtmlText(htmlText); in SetHtmlTextFuzzTest()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/test/unittest/pasteboardapi/ |
H A D | PasteBoardApiExceptionJsunit.test.js | 188 const htmlText = '<html><head></head><body>Hello!</body></html>'; 197 record.htmlText = htmlText; 227 expect(data.getPrimaryHtml()).assertEqual(htmlText); 314 expect(dataRecord.htmlText).assertEqual(htmlText6); 329 const htmlText = '<html><head></head><body>Hello World!</body></html>'; 333 const pasteDataRecord = pasteboard.createRecord('xxddxx', htmlText); 379 const htmlText = '<html><head></head><body>Hello World!</body></html>'; 382 pasteData = pasteboard.createData(pasteboard.MIMETYPE_TEXT_HTML, htmlText); 392 expect(dataRecord.htmlText).assertEqual(htmlText);
|
/ohos5.0/base/web/webview/ohos_adapter/pasteboard_adapter/include/ |
H A D | pasteboard_client_adapter_impl.h | 41 std::shared_ptr<std::string> htmlText, 44 bool SetHtmlText(std::shared_ptr<std::string> htmlText) override; 45 bool SetHtmlText(std::shared_ptr<std::string> htmlText, std::shared_ptr<std::string> plainText);
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/ |
H A D | ark_pasteboard_client_adapter.h | 119 const ArkWebString& mimeType, void* htmlText, void* plainText); 122 virtual bool SetHtmlText(void* htmlText) = 0;
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/innerkits/include/ |
H A D | paste_data_record.h | 52 PasteDataRecord(std::string mimeType, std::shared_ptr<std::string> htmlText, 56 static std::shared_ptr<PasteDataRecord> NewHtmlRecord(const std::string &htmlText); 132 Builder &SetHtmlText(std::shared_ptr<std::string> htmlText);
|
/ohos5.0/base/web/webview/ohos_interface/include/ohos_adapter/ |
H A D | pasteboard_client_adapter.h | 120 …const std::string& mimeType, std::shared_ptr<std::string> htmlText, std::shared_ptr<std::string> p… 122 virtual bool SetHtmlText(std::shared_ptr<std::string> htmlText) = 0;
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | tlv_object_test.cpp | 54 auto htmlText = std::make_shared<std::string>("<span>hello" + indexStr + "</span>"); in GenRecord() local 62 …auto record1 = builder.SetPlainText(plainText).SetHtmlText(htmlText).SetUri(uri).SetWant(want).Bui… in GenRecord()
|
H A D | pasteboard_client_test.cpp | 126 std::string htmlText = "<div class='disable'>helloWorld</div>"; variable 127 auto newPasteData = PasteboardClient::GetInstance()->CreateHtmlData(htmlText); 231 std::string htmlText = "<div class='disable'>helloWorld</div>"; variable 232 auto newPasteData = PasteboardClient::GetInstance()->CreateHtmlData(htmlText);
|
H A D | paste_data_test.cpp | 283 std::string htmlText = "<div class='disabled'>" + res + "</div>"; variable 284 auto record = PasteboardClient::GetInstance()->CreateHtmlTextRecord(htmlText); 317 std::string htmlText = "<div class='disabled item tip user-programs'>"; variable 318 auto record = PasteboardClient::GetInstance()->CreateHtmlTextRecord(htmlText); 321 EXPECT_EQ(text, htmlText);
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/capability/clipboard/ |
H A D | clipboard_impl.cpp | 394 auto htmlText = pasteDataRecord->GetHtmlText(); in GetDataSync() local 396 auto spanStr = toSpan.ToSpanString(*htmlText, false); in GetDataSync() 462 auto htmlText = pasteDataRecord->GetHtmlText(); in ProcessPasteDataRecord() local 464 auto spanStr = toSpan.ToSpanString(*htmlText); in ProcessPasteDataRecord() 641 auto htmlText = pasteDataRecord->GetHtmlText(); in ProcessSpanStringData() local 643 auto spanStr = toSpan.ToSpanString(*htmlText); in ProcessSpanStringData()
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/ |
H A D | paste_data_record.cpp | 68 …teDataRecord::Builder &PasteDataRecord::Builder::SetHtmlText(std::shared_ptr<std::string> htmlText) in SetHtmlText() argument 70 record_->htmlText_ = std::move(htmlText); in SetHtmlText() 135 std::shared_ptr<PasteDataRecord> PasteDataRecord::NewHtmlRecord(const std::string &htmlText) in NewHtmlRecord() argument 137 if (htmlText.length() >= MAX_TEXT_LEN) { in NewHtmlRecord() 140 return Builder(MIMETYPE_TEXT_HTML).SetHtmlText(std::make_shared<std::string>(htmlText)).Build(); in NewHtmlRecord() 216 PasteDataRecord::PasteDataRecord(std::string mimeType, std::shared_ptr<std::string> htmlText, in PasteDataRecord() argument 218 : mimeType_{ std::move(mimeType) }, htmlText_{ std::move(htmlText) }, want_{ std::move(want) }, in PasteDataRecord()
|
/ohos5.0/base/web/webview/test/unittest/pasteboard_adapter/ |
H A D | pasteboard_client_adapter_test.cpp | 302 std::shared_ptr<std::string> htmlText = g_paster->GetHtmlText(); variable 303 if (htmlText == nullptr) { 689 std::shared_ptr<std::string> htmlText = std::make_shared<std::string>("test"); variable 690 if (htmlText == nullptr) { 694 bool reset = g_datarecordnull->SetHtmlText(htmlText); 698 reset = g_datarecord->SetHtmlText(htmlText);
|
/ohos5.0/foundation/distributeddatamgr/pasteboard/interfaces/ndk/unittest/ |
H A D | pasteboard_capi_test.cpp | 457 OH_UdsHtml* htmlText = OH_UdsHtml_Create(); variable 458 ASSERT_TRUE(htmlText); 460 OH_UdsHtml_SetContent(htmlText, html); 461 OH_UdmfRecord_AddHtml(record2, htmlText);
|
/ohos5.0/docs/zh-cn/release-notes/api-diff/v4.0-Release to v4.0-beta2/ |
H A D | js-apidiff-misc.md | 34 |type有变化|类名:PasteDataRecord;<br>方法or属性:htmlText: string;<br>旧版本信息:|类名:PasteDataRecord;<br>方法or属性:ht…
|